devsound/devsoundrefplugin/src/swcodecwrapper/mmfSwCodecUtility.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __MMFSWCODECUTILITY_H__
       
    17 #define __MMFSWCODECUTILITY_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <mmf/server/mmfdatabuffer.h>
       
    21 
       
    22 /**
       
    23  * @internalTechnology
       
    24  */
       
    25 class CMMFSwCodecUtility : public CBase
       
    26 	{
       
    27 public:
       
    28 	// Destructor
       
    29 	~CMMFSwCodecUtility();
       
    30 	static CMMFSwCodecUtility* NewL();
       
    31 
       
    32 	void ConfigAudioRamper(TInt64 aRampTime, TInt aSampleRate, TInt aChannels);
       
    33 	TBool RampAudio(CMMFDataBuffer* aBuffer);
       
    34 private:
       
    35 	CMMFSwCodecUtility();
       
    36 	void ConstructL();
       
    37 
       
    38 private:
       
    39 	TInt		iRampSamples;
       
    40 	TInt		iRampSamplesLeft;
       
    41 	TInt		iChannels;
       
    42 	TInt		iRampIncr;
       
    43 	TBool		iSkip;
       
    44 	} ;
       
    45 
       
    46 #endif // __MMFSWCODECUTILITY_H__