audiostubs/devsoundextensions_stubs/audiocodeccistubs/ra8decoderintfccistub/src/Ra8DecoderIntfcCIStub.cpp
changeset 0 0ce1b5ce9557
child 3 f935d51494d1
equal deleted inserted replaced
-1:000000000000 0:0ce1b5ce9557
       
     1 /*
       
     2 * Copyright (c) 2007 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 -  Custom Interface stub object for configuring the RA8 decoder.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <e32debug.h>
       
    21 #include "Ra8CustomInterfaceCI.h"
       
    22 
       
    23 // EXTERNAL DATA STRUCTURES
       
    24 
       
    25 // EXTERNAL FUNCTION PROTOTYPES
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // LOCAL CONSTANTS AND MACROS
       
    32 
       
    33 // MODULE DATA STRUCTURES
       
    34 
       
    35 // LOCAL FUNCTION PROTOTYPES
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 
       
    39 // ============================= LOCAL FUNCTIONS ===============================
       
    40 
       
    41 // ============================ MEMBER FUNCTIONS ===============================
       
    42 
       
    43 /**
       
    44  * CRa8DecoderIntfcCI::CRa8DecoderIntfcCI
       
    45  * C++ default constructor.
       
    46  */
       
    47 CRa8DecoderIntfcCI::CRa8DecoderIntfcCI()
       
    48     {
       
    49     }
       
    50 
       
    51 /**
       
    52  * CRa8DecoderIntfcCI::ConstructL
       
    53  * Symbian 2nd phase constructor.
       
    54  */
       
    55 void CRa8DecoderIntfcCI::ConstructL()
       
    56     {
       
    57     }
       
    58 
       
    59 /**
       
    60  * CRa8DecoderIntfcCI::NewL
       
    61  * Two-phased constructor.
       
    62  */
       
    63 EXPORT_C CRa8DecoderIntfcCI* CRa8DecoderIntfcCI::NewL()
       
    64     {
       
    65 	CRa8DecoderIntfcCI* self = new (ELeave)CRa8DecoderIntfcCI;
       
    66 	CleanupStack::PushL(self);
       
    67 	self->ConstructL();
       
    68 	CleanupStack::Pop(self);
       
    69 	return self;
       
    70     }
       
    71 
       
    72 /**
       
    73  * Destructor
       
    74  */
       
    75 EXPORT_C CRa8DecoderIntfcCI::~CRa8DecoderIntfcCI()
       
    76     {
       
    77     }
       
    78 
       
    79 /**
       
    80  * CRa8DecoderIntfcCI::FrameNumber
       
    81  * Returns frame number from the codec.
       
    82  * (other items were commented in a header).
       
    83  */
       
    84 EXPORT_C TInt CRa8DecoderIntfcCI::FrameNumber()
       
    85     {
       
    86     TInt frameNum(125); //any number is good
       
    87 
       
    88 #ifdef _DEBUG
       
    89     RDebug::Print(_L("CRa8DecoderIntfcCI::FrameNumber [%d]"), frameNum);
       
    90 #endif
       
    91 	return frameNum;
       
    92     }
       
    93 
       
    94 /*
       
    95  * CRa8DecoderIntfcCI::SetInitString
       
    96  * Processes received init string.
       
    97  * (other items were commented in a header).
       
    98  */
       
    99 EXPORT_C TInt CRa8DecoderIntfcCI::SetInitString(TDesC8& aInitString)
       
   100     {
       
   101 #ifdef _DEBUG
       
   102     RDebug::Print(_L("CRa8DecoderIntfcCI::SetInitString"));
       
   103 #endif
       
   104 
       
   105     TBuf<64> buf;
       
   106     buf.Copy(aInitString);
       
   107 
       
   108 #ifdef _DEBUG
       
   109     _LIT(KTest, "RECEIVED STRING: [%S]\n");
       
   110     RDebug::Print(KTest, &buf);
       
   111 #endif
       
   112 
       
   113     return KErrNone;
       
   114     }
       
   115 
       
   116 // End of File