os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/eaacplusdecodertestdevice.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef EAACPLUSDECODERTESTDEVICE_H
    17 #define EAACPLUSDECODERTESTDEVICE_H
    18 
    19 #include <mmf/server/mmfswcodecwrapper.h>
    20 #include <mmf/server/devsoundstandardcustominterfaces.h>
    21 
    22 
    23 /**
    24 *
    25 * CEAacPlusDecoderTestDevice
    26 *
    27 * Test hw device used by the
    28 * TSU_MMF_DEVSOUND_CIU_SUITE unit test harness.
    29 */
    30 class CEAacPlusDecoderTestDevice : public CMMFSwCodecWrapper, public MEAacPlusDecoderIntfc
    31 	{
    32 public:
    33 	static CMMFHwDevice* NewL();
    34 	virtual ~CEAacPlusDecoderTestDevice();
    35 	virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
    36 	virtual TInt Stop();
    37 	virtual TInt Pause();
    38 	virtual TInt Init(THwDeviceInitParams& aDevInfo);
    39 	virtual TAny* CustomInterface(TUid aInterfaceId);
    40 	virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr);
    41 	virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr);
    42 	virtual TInt SetConfig(TTaskConfig& aConfig);
    43 	virtual TInt StopAndDeleteCodec();
    44 	virtual TInt DeleteCodec();
    45 
    46 // from CMMFSwCodecWrapper
    47 	virtual CMMFSwCodec& Codec();
    48 
    49 	// from MEAacPlusDecoderIntfc
    50 	virtual void SetInputSamplingFrequency(TUint aInputSamplingFrequency);
    51 	virtual void SetAudioObjectType(MEAacPlusDecoderIntfc::TAudioObjectType aAudioObjectType);
    52 	virtual void SetNumOfChannels(TUint aNumOfChannels);
    53 	virtual void SetSbr(TBool aSbrEnabled);
    54 	virtual void SetDownSampledMode(TBool aDsmEnabled);
    55 	virtual TInt ApplyConfig();
    56 	virtual TInt GetInputSamplingFrequency ( TUint& aInputSamplingFrequency );
    57 	virtual TInt GetAudioObjectType(MEAacPlusDecoderIntfc::TAudioObjectType& aAudioObjectType);
    58 	virtual TInt GetNumOfChannels ( TUint& aNumOfChannels );
    59 	virtual TInt GetSbr (TBool& aSbrEnabled);
    60 	virtual TInt GetDownSampledMode (TBool& aDsmEnabled);
    61 
    62 	
    63 private:
    64 	CEAacPlusDecoderTestDevice();
    65 	void ConstructL();
    66 private:
    67 	TUint iFrequency;
    68 	MEAacPlusDecoderIntfc::TAudioObjectType iAudioObjectType;
    69 	TUint iNumOfChannels;
    70 	TBool iSbrEnabled;
    71 	TBool iDsmEnabled;
    72 	TBool iApplyConfig;
    73 	};
    74 
    75 #endif