os/mm/mmlibs/mmfw/tsrc/mmfunittest/ctlfrm/mp3/MmfMP3NullCodec/mmfmp3Codec.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2003-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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // This is a test codec which takes MP3 data & gives it back to the datapath
    15 // pretending it has converted it to PCM16 data thus producing lots of noise
    16 // 
    17 //
    18 
    19 #ifndef __MMF_MP3_CODEC_H__
    20 #define __MMF_MP3_CODEC_H__
    21 
    22 #include <mmf/server/mmfcodec.h>
    23 #include <mmf/server/mmfdatabuffer.h>
    24 
    25 class CMMFMP3To16PcmCodec : public CMMFCodec
    26 	{
    27 public:
    28 	static CMMFCodec* NewL(TAny* aInitParams);
    29 	virtual ~CMMFMP3To16PcmCodec();
    30 	TCodecProcessResult ProcessL(const CMMFBuffer& aSrc, CMMFBuffer& aDst);
    31 	virtual void ResetL();
    32 
    33 private:
    34 	CMMFMP3To16PcmCodec();
    35 	void ConstructL(TAny* aInitParams);
    36 	};
    37 
    38 #endif
    39