mmserv/voipaudioservices/VoIPIntfc/src/VoIPG711DecoderIntfcImpl.cpp
changeset 55 e267340986c9
parent 0 71ca22bcf22a
equal deleted inserted replaced
52:4ce423f34688 55:e267340986c9
     1 /*
     1 /*
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description: VOIP Audio Service
    14  * Description: VOIP Audio Service
    15 *
    15  *
    16 */
    16  */
    17 
       
    18 
    17 
    19 #include "VoIPAudioSession.h"
    18 #include "VoIPAudioSession.h"
    20 #include "VoIPDownlinkStreamImpl.h"
    19 #include "VoIPDownlinkStreamImpl.h"
    21 #include "VoIPG711DecoderIntfcImpl.h"
    20 #include "VoIPG711DecoderIntfcImpl.h"
    22 
       
    23 
    21 
    24 // ---------------------------------------------------------------------------
    22 // ---------------------------------------------------------------------------
    25 // CVoIPG711DecoderIntfcImpl::NewL
    23 // CVoIPG711DecoderIntfcImpl::NewL
    26 // ---------------------------------------------------------------------------
    24 // ---------------------------------------------------------------------------
    27 //
    25 //
    28 CVoIPG711DecoderIntfcImpl* CVoIPG711DecoderIntfcImpl::NewL(
    26 CVoIPG711DecoderIntfcImpl* CVoIPG711DecoderIntfcImpl::NewL(
    29                            CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
    27         CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
    30     {
    28     {
    31     CVoIPG711DecoderIntfcImpl* self = new (ELeave) CVoIPG711DecoderIntfcImpl();
    29     CVoIPG711DecoderIntfcImpl* self = new (ELeave) CVoIPG711DecoderIntfcImpl();
    32     CleanupStack::PushL(self);
    30     CleanupStack::PushL(self);
    33     self->ConstructL(aDnLinkStreamImpl);
    31     self->ConstructL(aDnLinkStreamImpl);
    34     CleanupStack::Pop(self);
    32     CleanupStack::Pop(self);
    54 // ---------------------------------------------------------------------------
    52 // ---------------------------------------------------------------------------
    55 // CVoIPG711DecoderIntfcImpl::ConstructL
    53 // CVoIPG711DecoderIntfcImpl::ConstructL
    56 // ---------------------------------------------------------------------------
    54 // ---------------------------------------------------------------------------
    57 //
    55 //
    58 void CVoIPG711DecoderIntfcImpl::ConstructL(
    56 void CVoIPG711DecoderIntfcImpl::ConstructL(
    59     CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
    57         CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
    60     {
    58     {
    61     iVoIPAudioSession = aDnLinkStreamImpl->GetSession();
    59     iVoIPAudioSession = aDnLinkStreamImpl->GetSession();
    62     CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession);
    60     CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession);
    63     CVoIPG711DecoderIntfc::ConstructL(this);
    61     CVoIPG711DecoderIntfc::ConstructL(this);
    64     }
    62     }
    66 // ---------------------------------------------------------------------------
    64 // ---------------------------------------------------------------------------
    67 // CVoIPG711DecoderIntfcImpl::SetMode
    65 // CVoIPG711DecoderIntfcImpl::SetMode
    68 // ---------------------------------------------------------------------------
    66 // ---------------------------------------------------------------------------
    69 //
    67 //
    70 TInt CVoIPG711DecoderIntfcImpl::SetMode(
    68 TInt CVoIPG711DecoderIntfcImpl::SetMode(
    71                                 CVoIPFormatIntfc::TG711CodecMode aMode)
    69         CVoIPFormatIntfc::TG711CodecMode aMode)
    72     {
    70     {
    73     TInt err = iVoIPAudioSession->SetMode(aMode);
    71     TInt err = iVoIPAudioSession->SetMode(aMode);
    74     return err;
    72     return err;
    75     }
    73     }
    76 
    74 
    77 // ---------------------------------------------------------------------------
    75 // ---------------------------------------------------------------------------
    78 // CVoIPG711DecoderIntfcImpl::GetMode
    76 // CVoIPG711DecoderIntfcImpl::GetMode
    79 // ---------------------------------------------------------------------------
    77 // ---------------------------------------------------------------------------
    80 //
    78 //
    81 TInt CVoIPG711DecoderIntfcImpl::GetMode(
    79 TInt CVoIPG711DecoderIntfcImpl::GetMode(
    82                                 CVoIPFormatIntfc::TG711CodecMode& aMode)
    80         CVoIPFormatIntfc::TG711CodecMode& aMode)
    83     {
    81     {
    84     TInt err = iVoIPAudioSession->GetMode(aMode);
    82     TInt err = iVoIPAudioSession->GetMode(aMode);
    85     return err;
    83     return err;
    86     }
    84     }
    87 
    85 
   123     {
   121     {
   124     TInt err = iVoIPAudioSession->GetPLC(aPlc);
   122     TInt err = iVoIPAudioSession->GetPLC(aPlc);
   125     return err;
   123     return err;
   126     }
   124     }
   127 
   125 
   128 
       
   129 // End of file
   126 // End of file