os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/g729encoderconfigtestdevice.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 G729ENCODERCONFIGTESTDEVICE_H
17 #define G729ENCODERCONFIGTESTDEVICE_H
19 #include <mmf/server/mmfswcodecwrapper.h>
20 #include <mmf/server/devsoundstandardcustominterfaces.h>
23 class CMMFG729EncoderConfig : public CBase,
24 public MG729EncoderIntfc
27 //return Pointer to the CMMFG729EncoderConfig class
28 static CMMFG729EncoderConfig* NewL();
31 ~CMMFG729EncoderConfig();
33 // from MG729EncoderIntfc
34 TInt SetVadMode(TBool aVadModeOn);
35 TInt GetVadMode(TBool& aVadModeOn);
40 CG729EncoderConfigTestDevice
42 Test hw device used by the
43 TSU_MMF_DEVSOUND_CIU_SUITE unit test harness.
45 class CG729EncoderConfigTestDevice : public CMMFSwCodecWrapper,
46 public MG729EncoderIntfc
49 static CMMFHwDevice* NewL();
50 virtual ~CG729EncoderConfigTestDevice();
51 virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
54 virtual TInt Init(THwDeviceInitParams& aDevInfo);
55 virtual TAny* CustomInterface(TUid aInterfaceId);
56 virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr);
57 virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr);
58 virtual TInt SetConfig(TTaskConfig& aConfig);
59 virtual TInt StopAndDeleteCodec();
60 virtual TInt DeleteCodec();
62 // from CMMFSwCodecWrapper
63 virtual CMMFSwCodec& Codec();
66 TInt SetVadMode(TBool aVadModeOn);
67 TInt GetVadMode(TBool& aVadModeOn);
70 CG729EncoderConfigTestDevice();
74 CMMFG729EncoderConfig* iG729EncoderConfig;