Update contrib.
1 // Copyright (c) 2002-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __MMF_PCMS16_TO_PCMS8_HW_DEVICE_H__
17 #define __MMF_PCMS16_TO_PCMS8_HW_DEVICE_H__
19 #include <mmf/server/mmfswcodecwrapper.h>
20 #include "MMFAudioCodec.h"
21 #include "MMFAudioPcmS16ToPcmS8Codec.h"
23 const TInt KPCM16ToPCM8SourceBufferSize = 0x1000;
24 const TInt KPCM16ToPCM8SinkBufferSize = 0x800;
28 * class CMMFPcmS16ToPcmS8HwDevice
31 class CMMFPcmS16ToPcmS8HwDevice: public CMMFSwCodecWrapper
34 static CMMFPcmS16ToPcmS8HwDevice* NewL();
35 virtual CMMFSwCodec& Codec();
36 ~CMMFPcmS16ToPcmS8HwDevice();
43 * class CMMFPcmS16ToPcmS8Codec converts Pcms16 to Pcm 8 signed
46 class CMMFPcmS16ToPcmS8Codec : public CMMFSwCodec
49 virtual TCodecProcessResult ProcessL(const CMMFBuffer& aSource, CMMFBuffer& aDest);
50 virtual TUint SourceBufferSize() {return KPCM16ToPCM8SourceBufferSize;};
51 virtual TUint SinkBufferSize() {return KPCM16ToPCM8SinkBufferSize;};
53 TBool CheckPreconditions( const CMMFDataBuffer* aSrcBuffer, CMMFDataBuffer* aDestBuffer );
55 TMMFAudioPcmS16ToPcmS8Codec iAudioPcmS16ToPcmS8;
58 #endif //__MMF_PCMS16_TO_PCMS8_HW_DEVICE_H__