mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/awbaudioplaycontroller/Src/AWBAudioPlayControllerDecoder.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 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:  This file defines the AWB Play Controller Decoder class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CAWBPLAYCONTROLLERDECODER_H
       
    21 #define CAWBPLAYCONTROLLERDECODER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "AdvancedAudioDecoder.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CMMFCodec;
       
    28 class TAudioFrameInfo;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  This class defines the AWB play controller decoder.
       
    34 *
       
    35 *  @lib AWBAudioPlayController.lib
       
    36 *  @since 3.0
       
    37 */
       
    38 class CAWBAudioPlayControllerDecoder : public CAdvancedAudioDecoder
       
    39     {
       
    40 
       
    41 	public:  // Constructors and destructor
       
    42 
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         */
       
    46         static CAWBAudioPlayControllerDecoder* NewL();
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CAWBAudioPlayControllerDecoder();
       
    52 
       
    53 	public:   // Functions from base classes
       
    54 
       
    55         /**
       
    56 		* From CAdvancedAudioDecoder
       
    57 	    * Check if the audio converter is hardware accelerated.
       
    58 	    * @since 3.0
       
    59 	    * @return ETrue if hardare accelerated, otherwise, EFalse.
       
    60 	    */
       
    61         TBool IsHwAccelerated();
       
    62 		TCodecProcessResult ProcessL(CMMFBuffer& aSrc, CMMFBuffer& aDst);
       
    63 		TInt CodecConfig(RArray<TInt>& aCodecConfigData);
       
    64 		TInt CodecCmd(TCodecCmd aCmd);
       
    65 
       
    66     private: // Functions from base classes
       
    67 
       
    68 		void ResetL();
       
    69 
       
    70         /**
       
    71         * C++ default constructor.
       
    72         */
       
    73         CAWBAudioPlayControllerDecoder();
       
    74 
       
    75         /**
       
    76         * By default Symbian 2nd phase constructor is private.
       
    77         */
       
    78         void ConstructL();
       
    79 
       
    80 		void InitCodecConfigs();
       
    81 		TInt FrameInfo(const TUint8* aBuf,TInt aBufLen,	TAudioFrameInfo& aInfo);
       
    82 		TInt SeekSync(TUint8* aBuf, TInt aBufLen);
       
    83 		TInt FrameLength(const TUint8* aBuf, TInt aBufLen, TInt& aFrameLength);
       
    84 
       
    85 	private:	// Data
       
    86 
       
    87 	};
       
    88 
       
    89 
       
    90 #endif 		// CAWBPLAYCONTROLLERDECODER_H
       
    91