mmserv/voipaudioservices/VoIPIntfc/src/VoIPG711EncoderIntfc.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 Services
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <voipformatintfc.h>
       
    21 #include <voipg711encoderintfc.h>
       
    22 #include "VoIPG711EncoderIntfcImpl.h"
       
    23 
       
    24 
       
    25 // ---------------------------------------------------------------------------
       
    26 // CVoIPG711EncoderIntfc::~CVoIPG711EncoderIntfc
       
    27 // ---------------------------------------------------------------------------
       
    28 //
       
    29 EXPORT_C CVoIPG711EncoderIntfc::~CVoIPG711EncoderIntfc()
       
    30     {
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // CVoIPG711EncoderIntfc::CVoIPG711EncoderIntfc
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 CVoIPG711EncoderIntfc::CVoIPG711EncoderIntfc()
       
    38     {
       
    39     }
       
    40 
       
    41 // ---------------------------------------------------------------------------
       
    42 // CVoIPG711EncoderIntfc::ConstructL
       
    43 // ---------------------------------------------------------------------------
       
    44 //
       
    45 void CVoIPG711EncoderIntfc::ConstructL(
       
    46                             CVoIPG711EncoderIntfcImpl* aFormatIntfcImpl)
       
    47     {
       
    48     iFormatIntfcImpl = aFormatIntfcImpl;
       
    49     CVoIPFormatIntfc::ConstructL(iFormatIntfcImpl);
       
    50     }
       
    51 
       
    52 // ---------------------------------------------------------------------------
       
    53 // CVoIPG711EncoderIntfc::SetMode
       
    54 // ---------------------------------------------------------------------------
       
    55 //
       
    56 EXPORT_C TInt CVoIPG711EncoderIntfc::SetMode(TG711CodecMode aMode)
       
    57     {
       
    58     TInt err = iFormatIntfcImpl->SetMode(aMode);
       
    59     return err;
       
    60     }
       
    61 
       
    62 // ---------------------------------------------------------------------------
       
    63 // CVoIPG711EncoderIntfc::GetMode
       
    64 // ---------------------------------------------------------------------------
       
    65 //
       
    66 EXPORT_C TInt CVoIPG711EncoderIntfc::GetMode(TG711CodecMode& aMode)
       
    67     {
       
    68     TInt err = iFormatIntfcImpl->GetMode(aMode);
       
    69     return err;
       
    70     }
       
    71 
       
    72 
       
    73 // End of file