Update contrib.
2 * Copyright (c) 1997-2002 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #ifndef __PCM16_IMAADPCM_CODEC_H__
21 #define __PCM16_IMAADPCM_CODEC_H__
23 #include "MMFCodecBaseDefinitions.h"
24 #include "MMFAudioCodecBase.h"
26 //mono IMA - i16PcmToImaAdpcm with 1 (mono)
27 class CMMFPcm16ImaAdPcmCodec : public CMMFCodec
30 static CMMFCodec* NewL(TAny* aInitParams);
31 virtual ~CMMFPcm16ImaAdPcmCodec();
32 TCodecProcessResult ProcessL(const CMMFBuffer& aSrc, CMMFBuffer& aDst);
34 CMMFPcm16ImaAdPcmCodec();
35 void ConstructL(TAny* aInitParams);
37 virtual void ResetL();
39 //owned by the Datapath
40 const CMMFDataBuffer* iSrc;
43 TUint iTempSrcBufferCount;
44 TUint8* iTempSrcBufferPtr;
45 TUint8 iTempSrcBuffer[KImaAdpcmTempBufferSize];
46 TMMF16PcmToImaAdpcmCodecOld i16PcmToImaAdpcm;
47 TUint iLastFrameNumber;