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.
14 // MmfBtpcm16ToPcmU8HwDevice.h
18 #ifndef __MMF_BT_ALAW_TO_PCM16_HW_DEVICE_H__
19 #define __MMF_BT_ALAW_TO_PCM16_HW_DEVICE_H__
20 #include <mmfbtswcodecwrapper.h>
21 #include "MMFAudioCodecBase.h"
22 #include "MMFAudioALawToS16PcmCodec.h"
24 const TInt KALawToCM16SrcBufferSize = 0x1000;
25 const TInt KALawToCM16SinkBufferSize = 0x2000;
29 * CMMFAlawToPcm16CodecHwDevice
32 class CMMFAlawToPcm16CodecHwDevice : public CMMFSwCodecWrapper
35 static CMMFAlawToPcm16CodecHwDevice* NewL();
36 virtual CMMFSwCodec& Codec();
37 ~CMMFAlawToPcm16CodecHwDevice();
44 * class CMMFAlawToPcm16Codec coverts ALaw to PCM
47 class CMMFAlawToPcm16Codec : public CMMFSwCodec
50 virtual TCodecProcessResult ProcessL(const CMMFBuffer& aSource, CMMFBuffer& aDest);
51 virtual TUint SourceBufferSize() {return KALawToCM16SrcBufferSize;};
52 virtual TUint SinkBufferSize() {return KALawToCM16SinkBufferSize;};
54 TBool CheckPreconditions( const CMMFDataBuffer* aSrcBuffer, CMMFDataBuffer* aDestBuffer );
55 TInt AlawSampleToPcm(TUint8 aAlaw);
57 TMMFAudioALawToS16PcmCodec iAlawTo16Pcm;
60 #endif //__MMF_BT_ALAW_TO_PCM16_HW_DEVICE_H__