os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/aacdecoderconfigtestdevice.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 AACDECODERCONFIGTESTDEVICE_H
17 #define AACDECODERCONFIGTESTDEVICE_H
19 #include <mmf/server/mmfswcodecwrapper.h>
20 #include <mmf/server/devsoundstandardcustominterfaces.h>
23 class CMMFAacDecoderConfig : public CBase,
24 public MAacDecoderConfig
27 //return Pointer to the CMMFAacDecoderConfig class
28 static CMMFAacDecoderConfig* NewL();
31 ~CMMFAacDecoderConfig();
33 // from MAacDecoderConfig
34 TInt SetAudioConfig(TAudioConfig& aAudioConfig);
35 TInt GetSupportedAudioConfigs(RArray<TAudioConfig>& aSupportedAudioConfigs);
40 CAacDecoderConfigTestDevice
42 Test hw device used by the
43 SU_MMF_DEVSOUND_CIU_SUITE unit test harness.
45 class CAacDecoderConfigTestDevice : public CMMFSwCodecWrapper,
46 public MAacDecoderConfig
49 static CMMFHwDevice* NewL();
50 virtual ~CAacDecoderConfigTestDevice();
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 SetAudioConfig(TAudioConfig& aAudioConfig);
67 TInt GetSupportedAudioConfigs(RArray<MAacDecoderConfig::TAudioConfig>& aSupportedAudioConfigs);
70 CAacDecoderConfigTestDevice();
74 CMMFAacDecoderConfig* iAacDecoderConfig;