mmserv/voipaudioservices/VoIPIntfc/src/VoIPG711DecoderIntfc.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 <voipg711decoderintfc.h>
       
    20 #include "VoIPFormatIntfcImpl.h"
       
    21 #include "VoIPG711DecoderIntfcImpl.h"
       
    22 
       
    23 
       
    24 // ======== MEMBER FUNCTIONS ========
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // CVoIPG711DecoderIntfc::~CVoIPG711DecoderIntfc
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C CVoIPG711DecoderIntfc::~CVoIPG711DecoderIntfc()
       
    31     {
       
    32     }
       
    33 
       
    34 // ---------------------------------------------------------------------------
       
    35 // CVoIPG711DecoderIntfc::CVoIPG711DecoderIntfc
       
    36 // ---------------------------------------------------------------------------
       
    37 //
       
    38 CVoIPG711DecoderIntfc::CVoIPG711DecoderIntfc()
       
    39     {
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // CVoIPG711DecoderIntfc::ConstructL
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 void CVoIPG711DecoderIntfc::ConstructL(
       
    47                             CVoIPG711DecoderIntfcImpl* aFormatIntfcImpl)
       
    48     {
       
    49     iFormatIntfcImpl = aFormatIntfcImpl;
       
    50     CVoIPFormatIntfc::ConstructL(iFormatIntfcImpl);
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // CVoIPG711DecoderIntfc::SetMode
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 EXPORT_C TInt CVoIPG711DecoderIntfc::SetMode(TG711CodecMode aMode)
       
    58     {
       
    59     TInt err = iFormatIntfcImpl->SetMode(aMode);
       
    60     return err;
       
    61     }
       
    62 
       
    63 // ---------------------------------------------------------------------------
       
    64 // CVoIPG711DecoderIntfc::GetMode
       
    65 // ---------------------------------------------------------------------------
       
    66 //
       
    67 EXPORT_C TInt CVoIPG711DecoderIntfc::GetMode(TG711CodecMode& aMode)
       
    68     {
       
    69     TInt err = iFormatIntfcImpl->GetMode(aMode);
       
    70     return err;
       
    71     }
       
    72 
       
    73 // ---------------------------------------------------------------------------
       
    74 // CVoIPG711DecoderIntfc::SetCNG
       
    75 // ---------------------------------------------------------------------------
       
    76 //
       
    77 EXPORT_C TInt CVoIPG711DecoderIntfc::SetCNG(TBool aCng)
       
    78     {
       
    79     TInt err = iFormatIntfcImpl->SetCNG(aCng);
       
    80     return err;
       
    81     }
       
    82 
       
    83 // ---------------------------------------------------------------------------
       
    84 // CVoIPG711DecoderIntfc::GetCNG
       
    85 // ---------------------------------------------------------------------------
       
    86 //
       
    87 EXPORT_C TInt CVoIPG711DecoderIntfc::GetCNG(TBool& aCng)
       
    88     {
       
    89     TInt err = iFormatIntfcImpl->GetCNG(aCng);
       
    90     return err;
       
    91     }
       
    92 
       
    93 // ---------------------------------------------------------------------------
       
    94 // CVoIPG711DecoderIntfc::SetPLC
       
    95 // ---------------------------------------------------------------------------
       
    96 //
       
    97 EXPORT_C TInt CVoIPG711DecoderIntfc::SetPLC(TBool aPlc)
       
    98     {
       
    99     TInt err = iFormatIntfcImpl->SetPLC(aPlc);
       
   100     return err;
       
   101     }
       
   102 
       
   103 // ---------------------------------------------------------------------------
       
   104 // CVoIPG711DecoderIntfc::GetPLC
       
   105 // ---------------------------------------------------------------------------
       
   106 //
       
   107 EXPORT_C TInt CVoIPG711DecoderIntfc::GetPLC(TBool& aPlc)
       
   108     {
       
   109     TInt err = iFormatIntfcImpl->GetPLC(aPlc);
       
   110     return err;
       
   111     }
       
   112 
       
   113 
       
   114 // End of file