|
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 ADVANCEDAACENCODESETTINGSTESTDEVICE_H |
|
17 #define ADVANCEDAACENCODESETTINGSTESTDEVICE_H |
|
18 |
|
19 #include <mmf/server/mmfswcodecwrapper.h> |
|
20 #include <mmf/server/devsoundstandardcustominterfaces.h> |
|
21 |
|
22 |
|
23 /** |
|
24 * |
|
25 * CAdvancedAacEncodeSettingsTestDevice |
|
26 * |
|
27 * Test hw device used by the |
|
28 * TSU_MMF_DEVSOUND_CIU_SUITE unit test harness. |
|
29 */ |
|
30 class CAdvancedAacEncodeSettingsTestDevice : public CMMFSwCodecWrapper, |
|
31 public MMMFAdvancedAACEncodeSettings |
|
32 { |
|
33 public: |
|
34 static CMMFHwDevice* NewL(); |
|
35 virtual ~CAdvancedAacEncodeSettingsTestDevice(); |
|
36 virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd); |
|
37 virtual TInt Stop(); |
|
38 virtual TInt Pause(); |
|
39 virtual TInt Init(THwDeviceInitParams& aDevInfo); |
|
40 virtual TAny* CustomInterface(TUid aInterfaceId); |
|
41 virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr); |
|
42 virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr); |
|
43 virtual TInt SetConfig(TTaskConfig& aConfig); |
|
44 virtual TInt StopAndDeleteCodec(); |
|
45 virtual TInt DeleteCodec(); |
|
46 |
|
47 // from CMMFSwCodecWrapper |
|
48 virtual CMMFSwCodec& Codec(); |
|
49 |
|
50 // from MMMFAdvancedAACEncodeSettings |
|
51 virtual TInt SetAACEncodeBitrateMode(TAACBitrateMode aBitrateMode); |
|
52 virtual TInt GetAACEncodeBitrateMode(TAACBitrateMode& aBitrateMode); |
|
53 |
|
54 private: |
|
55 CAdvancedAacEncodeSettingsTestDevice(); |
|
56 void ConstructL(); |
|
57 private: |
|
58 TAACBitrateMode iBitrateMode; |
|
59 }; |
|
60 |
|
61 #endif |