mmserv/voipaudioservices/VoIPIntfc/src/VoIPILBCDecoderIntfc.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 Service
    14  * Description: VOIP Audio Service
    15 *
    15  *
    16 */
    16  */
    17 
       
    18 
    17 
    19 #include <e32base.h>
    18 #include <e32base.h>
    20 #include <voipilbcdecoderintfc.h>
    19 #include <voipilbcdecoderintfc.h>
    21 #include "VoIPILBCDecoderIntfcImpl.h"
    20 #include "VoIPILBCDecoderIntfcImpl.h"
    22 
       
    23 
    21 
    24 // ---------------------------------------------------------------------------
    22 // ---------------------------------------------------------------------------
    25 // CVoIPILBCDecoderIntfc::~CVoIPILBCDecoderIntfc
    23 // CVoIPILBCDecoderIntfc::~CVoIPILBCDecoderIntfc
    26 // ---------------------------------------------------------------------------
    24 // ---------------------------------------------------------------------------
    27 //
    25 //
    40 // ---------------------------------------------------------------------------
    38 // ---------------------------------------------------------------------------
    41 // CVoIPILBCDecoderIntfc::ConstructL
    39 // CVoIPILBCDecoderIntfc::ConstructL
    42 // ---------------------------------------------------------------------------
    40 // ---------------------------------------------------------------------------
    43 //
    41 //
    44 void CVoIPILBCDecoderIntfc::ConstructL(
    42 void CVoIPILBCDecoderIntfc::ConstructL(
    45                             CVoIPILBCDecoderIntfcImpl* aFormatIntfcImpl)
    43         CVoIPILBCDecoderIntfcImpl* aFormatIntfcImpl)
    46     {
    44     {
    47     iFormatIntfcImpl = aFormatIntfcImpl;
    45     iFormatIntfcImpl = aFormatIntfcImpl;
    48     CVoIPFormatIntfc::ConstructL(iFormatIntfcImpl);
    46     CVoIPFormatIntfc::ConstructL(iFormatIntfcImpl);
    49     }
    47     }
    50 
    48 
    51 // ---------------------------------------------------------------------------
    49 // ---------------------------------------------------------------------------
    52 // CVoIPILBCDecoderIntfc::SetMode
    50 // CVoIPILBCDecoderIntfc::SetMode
    53 // ---------------------------------------------------------------------------
    51 // ---------------------------------------------------------------------------
    54 //
    52 //
    55 EXPORT_C TInt CVoIPILBCDecoderIntfc::SetMode(
    53 EXPORT_C TInt CVoIPILBCDecoderIntfc::SetMode(
    56                                      CVoIPFormatIntfc::TILBCCodecMode aMode)
    54         CVoIPFormatIntfc::TILBCCodecMode aMode)
    57     {
    55     {
    58     TInt err = iFormatIntfcImpl->SetMode(aMode);
    56     TInt err = iFormatIntfcImpl->SetMode(aMode);
    59     return err;
    57     return err;
    60     }
    58     }
    61 
    59 
    62 // ---------------------------------------------------------------------------
    60 // ---------------------------------------------------------------------------
    63 // CVoIPILBCDecoderIntfc::GetMode
    61 // CVoIPILBCDecoderIntfc::GetMode
    64 // ---------------------------------------------------------------------------
    62 // ---------------------------------------------------------------------------
    65 //
    63 //
    66 EXPORT_C TInt CVoIPILBCDecoderIntfc::GetMode(
    64 EXPORT_C TInt CVoIPILBCDecoderIntfc::GetMode(
    67                                      CVoIPFormatIntfc::TILBCCodecMode& aMode)
    65         CVoIPFormatIntfc::TILBCCodecMode& aMode)
    68     {
    66     {
    69     TInt err = iFormatIntfcImpl->GetMode(aMode);
    67     TInt err = iFormatIntfcImpl->GetMode(aMode);
    70     return err;
    68     return err;
    71     }
    69     }
    72 
    70 
    88     {
    86     {
    89     TInt err = iFormatIntfcImpl->GetCNG(aCng);
    87     TInt err = iFormatIntfcImpl->GetCNG(aCng);
    90     return err;
    88     return err;
    91     }
    89     }
    92 
    90 
    93 
       
    94 // End of file
    91 // End of file