os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/g729decoderconfigtestdevice.h
Update contrib.
1 // Copyright (c) 2007-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.
16 #ifndef G729DECODERCONFIGTESTDEVICE_H
17 #define G729DECODERCONFIGTESTDEVICE_H
19 #include <mmf/server/mmfswcodecwrapper.h>
20 #include <mmf/server/devsoundstandardcustominterfaces.h>
23 class CMMFG729DecoderConfig : public CBase,
24 public MG729DecoderIntfc
27 //return Pointer to the CMMFG729DecoderConfig class
28 static CMMFG729DecoderConfig* NewL();
31 ~CMMFG729DecoderConfig();
33 // from MG729DecoderIntfc
34 TInt BadLsfNextBuffer();
39 CG729DecoderConfigTestDevice
41 Test hw device used by the
42 TSU_MMF_DEVSOUND_CIU_SUITE unit test harness.
44 class CG729DecoderConfigTestDevice : public CMMFSwCodecWrapper,
45 public MG729DecoderIntfc
48 static CMMFHwDevice* NewL();
49 virtual ~CG729DecoderConfigTestDevice();
50 virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
53 virtual TInt Init(THwDeviceInitParams& aDevInfo);
54 virtual TAny* CustomInterface(TUid aInterfaceId);
55 virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr);
56 virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr);
57 virtual TInt SetConfig(TTaskConfig& aConfig);
58 virtual TInt StopAndDeleteCodec();
59 virtual TInt DeleteCodec();
61 // from CMMFSwCodecWrapper
62 virtual CMMFSwCodec& Codec();
65 TInt BadLsfNextBuffer();
68 CG729DecoderConfigTestDevice();
72 CMMFG729DecoderConfig* iG729DecoderConfig;