mmserv/voipaudioservices/VoIPIntfc/src/VoIPILBCDecoderIntfcImpl.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 Services
    14  * Description:  VOIP Audio Services
    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 "VoIPILBCDecoderIntfcImpl.h"
    20 #include "VoIPILBCDecoderIntfcImpl.h"
    22 
       
    23 
    21 
    24 // ---------------------------------------------------------------------------
    22 // ---------------------------------------------------------------------------
    25 // CVoIPILBCDecoderIntfcImpl::NewL
    23 // CVoIPILBCDecoderIntfcImpl::NewL
    26 // ---------------------------------------------------------------------------
    24 // ---------------------------------------------------------------------------
    27 //
    25 //
    28 CVoIPILBCDecoderIntfcImpl* CVoIPILBCDecoderIntfcImpl::NewL(
    26 CVoIPILBCDecoderIntfcImpl* CVoIPILBCDecoderIntfcImpl::NewL(
    29                            CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
    27         CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
    30     {
    28     {
    31     CVoIPILBCDecoderIntfcImpl* self = new (ELeave) CVoIPILBCDecoderIntfcImpl();
    29     CVoIPILBCDecoderIntfcImpl* self = new (ELeave) CVoIPILBCDecoderIntfcImpl();
    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 // CVoIPILBCDecoderIntfcImpl::ConstructL
    53 // CVoIPILBCDecoderIntfcImpl::ConstructL
    56 // ---------------------------------------------------------------------------
    54 // ---------------------------------------------------------------------------
    57 //
    55 //
    58 void CVoIPILBCDecoderIntfcImpl::ConstructL(
    56 void CVoIPILBCDecoderIntfcImpl::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     CVoIPILBCDecoderIntfc::ConstructL(this);
    61     CVoIPILBCDecoderIntfc::ConstructL(this);
    64     }
    62     }
   101     {
    99     {
   102     TInt err = iVoIPAudioSession->GetCNG(aCng);
   100     TInt err = iVoIPAudioSession->GetCNG(aCng);
   103     return err;
   101     return err;
   104     }
   102     }
   105 
   103 
   106 
       
   107 // End of file
   104 // End of file