audiostubs/devsoundextensions_stubs/audiocodeccistubs/ilbcencoderintfccistub/src/IlbcEncoderIntfcCIStub.cpp
changeset 46 e1758cbb96ac
parent 0 0ce1b5ce9557
child 9 f935d51494d1
equal deleted inserted replaced
43:e71858845f73 46:e1758cbb96ac
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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: Audio Stubs -
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "IlbcEncoderIntfcCI.h"
       
    22 #include <e32debug.h>
       
    23 
       
    24 // EXTERNAL DATA STRUCTURES
       
    25 
       
    26 // EXTERNAL FUNCTION PROTOTYPES
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // LOCAL CONSTANTS AND MACROS
       
    33 
       
    34 // MODULE DATA STRUCTURES
       
    35 
       
    36 // LOCAL FUNCTION PROTOTYPES
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 
       
    40 // ============================= LOCAL FUNCTIONS ===============================
       
    41 
       
    42 // ============================ MEMBER FUNCTIONS ===============================
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // CIlbcEncoderIntfcCI::CIlbcEncoderIntfcCI
       
    46 // C++ default constructor can NOT contain any code, that
       
    47 // might leave.
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 CIlbcEncoderIntfcCI::CIlbcEncoderIntfcCI()
       
    51     {
       
    52 
       
    53     }
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // CIlbcEncoderIntfcCI::ConstructL
       
    57 // Symbian 2nd phase constructor can leave.
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 void CIlbcEncoderIntfcCI::ConstructL()
       
    61     {
       
    62 
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CIlbcEncoderIntfcCI::NewL
       
    67 // Two-phased constructor.
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 EXPORT_C CIlbcEncoderIntfcCI* CIlbcEncoderIntfcCI::NewL()
       
    71     {
       
    72 	CIlbcEncoderIntfcCI* self = new (ELeave)CIlbcEncoderIntfcCI;
       
    73 	CleanupStack::PushL(self);
       
    74 	self->ConstructL();
       
    75 	CleanupStack::Pop(self);
       
    76 	return self;
       
    77     }
       
    78 
       
    79 // Destructor
       
    80 EXPORT_C CIlbcEncoderIntfcCI::~CIlbcEncoderIntfcCI()
       
    81     {
       
    82 
       
    83     }
       
    84 
       
    85 // -----------------------------------------------------------------------------
       
    86 // CIlbcEncoderIntfcCI::SetEncoderMode
       
    87 // ?implementation_description
       
    88 // (other items were commented in a header).
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 EXPORT_C TInt CIlbcEncoderIntfcCI::SetEncoderMode(TEncodeMode aEncodeMode)
       
    92     {
       
    93     TBool myEncodeMode = aEncodeMode;
       
    94     RDebug::Print(_L("CIlbcEncoderIntfcCI::SetEncoderMode encodeMode[%d]"), myEncodeMode);
       
    95     return KErrNone;
       
    96     }
       
    97 
       
    98 // -----------------------------------------------------------------------------
       
    99 // CIlbcEncoderIntfcCI::SetVadMode
       
   100 // ?implementation_description
       
   101 // (other items were commented in a header).
       
   102 // -----------------------------------------------------------------------------
       
   103 //
       
   104 EXPORT_C TInt CIlbcEncoderIntfcCI::SetVadMode(TBool aVadMode)
       
   105     {
       
   106     iVadMode = aVadMode;
       
   107     RDebug::Print(_L("CIlbcEncoderIntfcCI::SetVadMode VAD mode[%d]"), iVadMode);
       
   108     return KErrNone;
       
   109     }
       
   110 
       
   111 // -----------------------------------------------------------------------------
       
   112 // CIlbcEncoderIntfcCI::GetVadMode
       
   113 // ?implementation_description
       
   114 // (other items were commented in a header).
       
   115 // -----------------------------------------------------------------------------
       
   116 //
       
   117 EXPORT_C TInt CIlbcEncoderIntfcCI::GetVadMode(TBool& aVadMode)
       
   118     {
       
   119     aVadMode = iVadMode;
       
   120     RDebug::Print(_L("CIlbcEncoderIntfcCI::GetVadMode VAD mode[%d]"), aVadMode);
       
   121     return KErrNone;
       
   122     }