diff -r 000000000000 -r 71ca22bcf22a mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/AdvancedAudioControllerUtility/Inc/AMRAudioControllerUtility.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/AdvancedAudioControllerUtility/Inc/AMRAudioControllerUtility.h Tue Feb 02 01:08:46 2010 +0200 @@ -0,0 +1,107 @@ +/* +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Class definition for the AMR utility functions. +* +*/ + + + +#ifndef CAMRAUDIOCONTROLLERUTILITY_H +#define CAMRAUDIOCONTROLLERUTILITY_H + +// INCLUDES +#include "AdvancedAudioUtility.h" + +// FORWARD DECLARATIONS +class CMMFDataBuffer; + +// CLASS DEFINITIONS + +/** +* This class provides AMR utility functions. +* +* @lib CAMRAudioControllerUtility.lib +* @since 3.0 +*/ +class CAMRAudioControllerUtility : public CAdvancedAudioUtility + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + IMPORT_C static CAMRAudioControllerUtility* NewL(); + + /** + * Destructor. + */ + IMPORT_C virtual ~CAMRAudioControllerUtility(); + + public: // Functions from base classes + + /** + * From CAdvancedAudioUtility + * Scans header information + * @param aDataBuf + * @return void + */ + void ScanHeaderL(CMMFDataBuffer* aDataBuf); + + /** + * From CAdvancedAudioUtility + * Returns the byte position of the first frame. + * @param aBuf Pointer to the data + * @param aBufLen Length of the data + * @return byte position of the first frame + */ + TInt SeekSync( CMMFDataBuffer* aBuf, TInt aBufLen ); + + /** + * From CAdvancedAudioUtility + * Returns frame info. + * @param aBuf Pointer to the data + * @param aBufLen Length of the data + * @param aInfo Contains the frame info on return + * @return frame length + */ + TInt FrameInfo( const TUint8* aBuf, TInt aBufLen, TAudioFrameInfo& aInfo ); + + /** + * From CAdvancedAudioUtility + * Returns frame header size. + * @param none + * @return frame header size + */ + TInt FrameHeaderSize(); + + private: + + /** + * C++ default constructor. + */ + CAMRAudioControllerUtility(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + private: // Data + + TInt iFrameDataOffset; + }; + +#endif // CAMRAUDIOCONTROLLERUTILITY_H + +// End of File