os/mm/devsound/sounddevbt/src/Plugin/HwDevice/Audio/MmfBtPcmU16BeToPcmS16HwDevice.h
First public contribution.
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 // src\plugin\Hwdevice\audio\MmfBtPcmU16BeToPcmS16HwDevice.h
18 #ifndef __MMF_BT_PCMU16BE_TO_PCM16_HW_DEVICE_H__
19 #define __MMF_BT_PCMU16BE_TO_PCM16_HW_DEVICE_H__
20 #include <mmfbtswcodecwrapper.h>
21 #include "MmfBtAudioCodec.h"
22 #include "MMFAudioPcmU16BeToPcmS16Codec.h"
24 const TInt KPCMU16BeToPCM16SourceBufferSize = 0x1000;
25 const TInt KPCMU16BeToPCM16SinkBufferSize = KPCMU16BeToPCM16SourceBufferSize;
29 * class CMMFPcmU16BeToPcmS16HwDevice
32 class CMMFPcmU16BeToPcmS16HwDevice : public CMMFSwCodecWrapper
35 static CMMFPcmU16BeToPcmS16HwDevice* NewL();
36 virtual CMMFSwCodec& Codec();
37 ~CMMFPcmU16BeToPcmS16HwDevice();
44 * class CMMFPcmU16BeToPcmS16Codec converts Pcm16 Big endian to Pcm16
47 class CMMFPcmU16BeToPcmS16Codec : public CMMFSwCodec
50 virtual TCodecProcessResult ProcessL(const CMMFBuffer& aSource, CMMFBuffer& aDest);
51 virtual TUint SourceBufferSize() {return KPCMU16BeToPCM16SourceBufferSize;};
52 virtual TUint SinkBufferSize() {return KPCMU16BeToPCM16SinkBufferSize;};
54 TBool CheckPreconditions( const CMMFDataBuffer* aSrcBuffer, CMMFDataBuffer* aDestBuffer );
56 TMMFAudioPcmU16BeToPcmS16Codec iAudioPcmU16BeToPcmS16;
59 #endif //__MMF_BT_PCMU16BE_TO_PCM16_HW_DEVICE_H__