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_BT_PCMS8_TO_PCMS16_HW_DEVICE_H__
17 #define __MMF_BT_PCMS8_TO_PCMS16_HW_DEVICE_H__
19 #include <mmfbtswcodecwrapper.h>
20 #include "MmfBtAudioCodec.h"
21 #include "MMFAudioPcm8ToPcm16Codec.h"
23 const TInt KPCM8ToPCM16SourceBufferSize = 0x0800;
24 const TInt KPCM8ToPCM16SinkBufferSize = 0x1000; //sink buffer length is twice source
28 * class CMMFPcm8ToPcm16HwDevice
31 class CMMFPcm8ToPcm16HwDevice : public CMMFSwCodecWrapper
34 static CMMFPcm8ToPcm16HwDevice* NewL();
35 virtual CMMFSwCodec& Codec();
36 ~CMMFPcm8ToPcm16HwDevice();
43 * class CMMFPcm8ToPcm16Codec converts pcm8 to pcm16
46 class CMMFPcm8ToPcm16Codec : public CMMFSwCodec
49 virtual TCodecProcessResult ProcessL(const CMMFBuffer& aSource, CMMFBuffer& aDest);
50 virtual TUint SourceBufferSize() {return KPCM8ToPCM16SourceBufferSize;};
51 virtual TUint SinkBufferSize() {return KPCM8ToPCM16SinkBufferSize;};
53 TBool CheckPreconditions( const CMMFDataBuffer* aSrcBuffer, CMMFDataBuffer* aDestBuffer );
55 TMMFAudioPcm8ToPcm16Codec iAudioPcm8ToPcm16 ;
58 #endif //__MMF_BT_PCMS8_TO_PCMS16_HW_DEVICE_H__