mmserv/voipaudioservices/VoIPIntfc/src/VoIPG729DecoderIntfcImpl.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 "VoIPG729DecoderIntfcImpl.h"
       
    22 
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // CVoIPG729DecoderIntfcImpl::NewL
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 CVoIPG729DecoderIntfcImpl* CVoIPG729DecoderIntfcImpl::NewL(
       
    29                            CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
       
    30     {
       
    31     CVoIPG729DecoderIntfcImpl* self = new (ELeave) CVoIPG729DecoderIntfcImpl();
       
    32     CleanupStack::PushL(self);
       
    33     self->ConstructL(aDnLinkStreamImpl);
       
    34     CleanupStack::Pop(self);
       
    35     return self;
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // CVoIPG729DecoderIntfcImpl::~CVoIPG729DecoderIntfcImpl
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 CVoIPG729DecoderIntfcImpl::~CVoIPG729DecoderIntfcImpl()
       
    43     {
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // CVoIPG729DecoderIntfcImpl::CVoIPG729DecoderIntfcImpl
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 CVoIPG729DecoderIntfcImpl::CVoIPG729DecoderIntfcImpl()
       
    51     {
       
    52     }
       
    53 
       
    54 // ---------------------------------------------------------------------------
       
    55 // CVoIPG729DecoderIntfcImpl::ConstructL
       
    56 // ---------------------------------------------------------------------------
       
    57 //
       
    58 void CVoIPG729DecoderIntfcImpl::ConstructL(
       
    59     CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
       
    60     {
       
    61     iVoIPAudioSession = aDnLinkStreamImpl->GetSession();
       
    62     CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession);
       
    63     CVoIPG729DecoderIntfc::ConstructL(this);
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // CVoIPG729DecoderIntfcImpl::BadLsfNextBuffer
       
    68 // ---------------------------------------------------------------------------
       
    69 //
       
    70 TInt CVoIPG729DecoderIntfcImpl::BadLsfNextBuffer()
       
    71     {
       
    72     TInt err = iVoIPAudioSession->BadLsfNextBuffer();
       
    73     return err;
       
    74     }
       
    75 
       
    76 
       
    77 // End of file