Update contrib.
2 * Copyright (c) 2002-2003 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.
18 #ifndef __MMF_TMMF_AUDIO_SPCM16_TO_MULAW_CODEC_H__
19 #define __MMF_TMMF_AUDIO_SPCM16_TO_MULAW_CODEC_H__
20 #include "MMFAudioCodecBase.h"
22 const TInt KMda16PcmToMulawExpLutSize = 256;
23 const TInt KMda16PcmToMulawClip = 32635;
24 const TInt KMda16PcmToMulawBias = 0x84;
28 * class TMMFAudioSPcm16ToMuLawCodec
31 class TMMFAudioSPcm16ToMuLawCodec : public TMMFAudioCodecBase
34 IMPORT_C virtual void Convert(TUint8* aSrc, TUint8* aDst, TInt aSamples);
36 TUint8 PcmSampleToMuLaw(TInt aPcm);
38 const static TInt8 KExpLut[KMda16PcmToMulawExpLutSize];
41 #endif //__MMF_TMMF_AUDIO_SPCM16_TO_MULAW_CODEC_H__