mmserv/voipaudioservices/VoIPIntfc/src/VoIPILBCEncoderIntfcImpl.cpp
changeset 53 eabc8c503852
parent 0 71ca22bcf22a
equal deleted inserted replaced
48:a493a607b5bf 53:eabc8c503852
     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 "VoIPUplinkStreamImpl.h"
    19 #include "VoIPUplinkStreamImpl.h"
    21 #include "VoIPILBCEncoderIntfcImpl.h"
    20 #include "VoIPILBCEncoderIntfcImpl.h"
    22 
       
    23 
    21 
    24 // ---------------------------------------------------------------------------
    22 // ---------------------------------------------------------------------------
    25 // CVoIPILBCEncoderIntfcImpl::NewL
    23 // CVoIPILBCEncoderIntfcImpl::NewL
    26 // ---------------------------------------------------------------------------
    24 // ---------------------------------------------------------------------------
    27 //
    25 //
    28 CVoIPILBCEncoderIntfcImpl* CVoIPILBCEncoderIntfcImpl::NewL(
    26 CVoIPILBCEncoderIntfcImpl* CVoIPILBCEncoderIntfcImpl::NewL(
    29                            CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl)
    27         CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl)
    30     {
    28     {
    31     CVoIPILBCEncoderIntfcImpl* self = new (ELeave) CVoIPILBCEncoderIntfcImpl();
    29     CVoIPILBCEncoderIntfcImpl* self = new (ELeave) CVoIPILBCEncoderIntfcImpl();
    32     CleanupStack::PushL(self);
    30     CleanupStack::PushL(self);
    33     self->ConstructL(aUpLinkStreamImpl);
    31     self->ConstructL(aUpLinkStreamImpl);
    34     CleanupStack::Pop(self);
    32     CleanupStack::Pop(self);
    54 // ---------------------------------------------------------------------------
    52 // ---------------------------------------------------------------------------
    55 // CVoIPILBCEncoderIntfcImpl::ConstructL
    53 // CVoIPILBCEncoderIntfcImpl::ConstructL
    56 // ---------------------------------------------------------------------------
    54 // ---------------------------------------------------------------------------
    57 //
    55 //
    58 void CVoIPILBCEncoderIntfcImpl::ConstructL(
    56 void CVoIPILBCEncoderIntfcImpl::ConstructL(
    59     CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl)
    57         CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl)
    60     {
    58     {
    61     iVoIPAudioSession = aUpLinkStreamImpl->GetSession();
    59     iVoIPAudioSession = aUpLinkStreamImpl->GetSession();
    62     CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession);
    60     CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession);
    63     CVoIPILBCEncoderIntfc::ConstructL(this);
    61     CVoIPILBCEncoderIntfc::ConstructL(this);
    64     }
    62     }
    81     {
    79     {
    82     TInt err = iVoIPAudioSession->GetMode(aMode);
    80     TInt err = iVoIPAudioSession->GetMode(aMode);
    83     return err;
    81     return err;
    84     }
    82     }
    85 
    83 
    86 
       
    87 // End of file
    84 // End of file