mmserv/voipaudioservices/VoIPIntfc/src/VoIPG711DecoderIntfcImpl.cpp
changeset 0 71ca22bcf22a
child 53 eabc8c503852
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: VOIP Audio Service
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "VoIPAudioSession.h"
       
    20 #include "VoIPDownlinkStreamImpl.h"
       
    21 #include "VoIPG711DecoderIntfcImpl.h"
       
    22 
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // CVoIPG711DecoderIntfcImpl::NewL
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 CVoIPG711DecoderIntfcImpl* CVoIPG711DecoderIntfcImpl::NewL(
       
    29                            CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
       
    30     {
       
    31     CVoIPG711DecoderIntfcImpl* self = new (ELeave) CVoIPG711DecoderIntfcImpl();
       
    32     CleanupStack::PushL(self);
       
    33     self->ConstructL(aDnLinkStreamImpl);
       
    34     CleanupStack::Pop(self);
       
    35     return self;
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // CVoIPG711DecoderIntfcImpl::~CVoIPG711DecoderIntfcImpl
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 CVoIPG711DecoderIntfcImpl::~CVoIPG711DecoderIntfcImpl()
       
    43     {
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // CVoIPG711DecoderIntfcImpl::CVoIPG711DecoderIntfcImpl
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 CVoIPG711DecoderIntfcImpl::CVoIPG711DecoderIntfcImpl()
       
    51     {
       
    52     }
       
    53 
       
    54 // ---------------------------------------------------------------------------
       
    55 // CVoIPG711DecoderIntfcImpl::ConstructL
       
    56 // ---------------------------------------------------------------------------
       
    57 //
       
    58 void CVoIPG711DecoderIntfcImpl::ConstructL(
       
    59     CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
       
    60     {
       
    61     iVoIPAudioSession = aDnLinkStreamImpl->GetSession();
       
    62     CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession);
       
    63     CVoIPG711DecoderIntfc::ConstructL(this);
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // CVoIPG711DecoderIntfcImpl::SetMode
       
    68 // ---------------------------------------------------------------------------
       
    69 //
       
    70 TInt CVoIPG711DecoderIntfcImpl::SetMode(
       
    71                                 CVoIPFormatIntfc::TG711CodecMode aMode)
       
    72     {
       
    73     TInt err = iVoIPAudioSession->SetMode(aMode);
       
    74     return err;
       
    75     }
       
    76 
       
    77 // ---------------------------------------------------------------------------
       
    78 // CVoIPG711DecoderIntfcImpl::GetMode
       
    79 // ---------------------------------------------------------------------------
       
    80 //
       
    81 TInt CVoIPG711DecoderIntfcImpl::GetMode(
       
    82                                 CVoIPFormatIntfc::TG711CodecMode& aMode)
       
    83     {
       
    84     TInt err = iVoIPAudioSession->GetMode(aMode);
       
    85     return err;
       
    86     }
       
    87 
       
    88 // ---------------------------------------------------------------------------
       
    89 // CVoIPG711DecoderIntfcImpl::SetCNG
       
    90 // ---------------------------------------------------------------------------
       
    91 //
       
    92 TInt CVoIPG711DecoderIntfcImpl::SetCNG(TBool aCng)
       
    93     {
       
    94     TInt err = iVoIPAudioSession->SetCNG(aCng);
       
    95     return err;
       
    96     }
       
    97 
       
    98 // ---------------------------------------------------------------------------
       
    99 // CVoIPG711DecoderIntfcImpl::GetCNG
       
   100 // ---------------------------------------------------------------------------
       
   101 //
       
   102 TInt CVoIPG711DecoderIntfcImpl::GetCNG(TBool& aCng)
       
   103     {
       
   104     TInt err = iVoIPAudioSession->GetCNG(aCng);
       
   105     return err;
       
   106     }
       
   107 
       
   108 // ---------------------------------------------------------------------------
       
   109 // CVoIPG711DecoderIntfcImpl::SetPLC
       
   110 // ---------------------------------------------------------------------------
       
   111 //
       
   112 TInt CVoIPG711DecoderIntfcImpl::SetPLC(TBool aPlc)
       
   113     {
       
   114     TInt err = iVoIPAudioSession->SetPLC(aPlc);
       
   115     return err;
       
   116     }
       
   117 
       
   118 // ---------------------------------------------------------------------------
       
   119 // CVoIPG711DecoderIntfcImpl::GetPLC
       
   120 // ---------------------------------------------------------------------------
       
   121 //
       
   122 TInt CVoIPG711DecoderIntfcImpl::GetPLC(TBool& aPlc)
       
   123     {
       
   124     TInt err = iVoIPAudioSession->GetPLC(aPlc);
       
   125     return err;
       
   126     }
       
   127 
       
   128 
       
   129 // End of file