os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/audiodspcontroltestdevice.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 AUDIODSPCONTROLTESTDEVICE_H
17 #define AUDIODSPCONTROLTESTDEVICE_H
19 #include <mmf/server/mmfswcodecwrapper.h>
20 #include <mmf/server/devsoundstandardcustominterfaces.h>
23 class CMMFAudioDspControl : public CBase,
27 //return Pointer to the CMMFAudioDspControl class
28 static CMMFAudioDspControl* NewL();
31 ~CMMFAudioDspControl();
34 TInt MmdspcGetAudioPlaybackInfo (TInt64& aSamplesPlayed, TInt64& aSystemTime, TUint& aB, TUint& aT);
35 TInt MmdspcAcceptRecordBuffersInvalidFollowingStop();
36 TInt MmdspcAcceptPlaybackBuffersInvalidFollowingStop();
41 CAudioDspControlTestDevice
43 Test hw device used by the
44 TSU_MMF_DEVSOUND_CIU_SUITE unit test harness.
46 class CAudioDspControlTestDevice : public CMMFSwCodecWrapper,
50 static CMMFHwDevice* NewL();
51 virtual ~CAudioDspControlTestDevice();
52 virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
55 virtual TInt Init(THwDeviceInitParams& aDevInfo);
56 virtual TAny* CustomInterface(TUid aInterfaceId);
57 virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr);
58 virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr);
59 virtual TInt SetConfig(TTaskConfig& aConfig);
60 virtual TInt StopAndDeleteCodec();
61 virtual TInt DeleteCodec();
63 // from CMMFSwCodecWrapper
64 virtual CMMFSwCodec& Codec();
67 TInt MmdspcGetAudioPlaybackInfo (TInt64& aSamplesPlayed, TInt64& aSystemTime, TUint& aB, TUint& aT);
68 TInt MmdspcAcceptRecordBuffersInvalidFollowingStop();
69 TInt MmdspcAcceptPlaybackBuffersInvalidFollowingStop();
72 CAudioDspControlTestDevice();
76 CMMFAudioDspControl* iAudioDspControl;