0
|
1 |
|
|
2 |
// MmfStdGlblAudioEffect.h
|
|
3 |
|
|
4 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
5 |
// All rights reserved.
|
|
6 |
// This component and the accompanying materials are made available
|
|
7 |
// under the terms of "Eclipse Public License v1.0"
|
|
8 |
// which accompanies this distribution, and is available
|
|
9 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
10 |
//
|
|
11 |
// Initial Contributors:
|
|
12 |
// Nokia Corporation - initial contribution.
|
|
13 |
//
|
|
14 |
// Contributors:
|
|
15 |
//
|
|
16 |
// Description:
|
|
17 |
//
|
|
18 |
|
|
19 |
#ifndef MMFSTDGLBLAUDIOEFFECT_H
|
|
20 |
#define MMFSTDGLBLAUDIOEFFECT_H
|
|
21 |
|
|
22 |
#include <mmf/common/mmfglblaudioeffect.h>
|
|
23 |
|
|
24 |
/**
|
|
25 |
@publishedPartner
|
|
26 |
@released
|
|
27 |
@file
|
|
28 |
*/
|
|
29 |
|
|
30 |
/**
|
|
31 |
Global Equaliser effect
|
|
32 |
This provides access to the global equaliser
|
|
33 |
*/
|
|
34 |
class CMmfGlobalEqEffect : public CMmfGlobalAudioEffect
|
|
35 |
{
|
|
36 |
public:
|
|
37 |
/**
|
|
38 |
Factory function
|
|
39 |
@param Observer to use - can be NULL
|
|
40 |
@return Freshly created object
|
|
41 |
@leave KErrNotSupported
|
|
42 |
There is no low-level implementation for this class
|
|
43 |
*/
|
|
44 |
IMPORT_C static CMmfGlobalEqEffect* NewL(MMmfGlobalAudioEffectObserver* aObserver);
|
|
45 |
|
|
46 |
/**
|
|
47 |
Maximum number of bands an equaliser can support
|
|
48 |
*/
|
|
49 |
static const TInt KMaxBands = 10;
|
|
50 |
|
|
51 |
/**
|
|
52 |
Struct to form basis of package buffer to ExtractValuesL() and SetByValuesL()
|
|
53 |
*/
|
|
54 |
class TValues
|
|
55 |
{
|
|
56 |
public:
|
|
57 |
TInt iNumBands; //*< Bands on current equaliser
|
|
58 |
TReal iCurrentValue[KMaxBands]; //*< current setting
|
|
59 |
TInt iNominalFreq[KMaxBands]; //*< Nominal freq for each band, used in dialogs
|
|
60 |
TReal iMin; //*< Min possible value on each band
|
|
61 |
TReal iMax; //*< Max possible value on each band
|
|
62 |
TVolumeValue iValueType; //*< How to interpet iCurrentValue, iMin and iMax
|
|
63 |
};
|
|
64 |
|
|
65 |
private:
|
|
66 |
CMmfGlobalEqEffect();
|
|
67 |
void ConstructL(MMmfGlobalAudioEffectObserver* aObserver);
|
|
68 |
};
|
|
69 |
|
|
70 |
|
|
71 |
/**
|
|
72 |
Global Megaboost effect
|
|
73 |
This provides access to the global megaboost.
|
|
74 |
Note there is currently no TValues struct defined for this - client apps must use
|
|
75 |
the preset interface.
|
|
76 |
*/
|
|
77 |
class CMmfGlobalMegaEffect : public CMmfGlobalAudioEffect
|
|
78 |
{
|
|
79 |
public:
|
|
80 |
/**
|
|
81 |
Factory function
|
|
82 |
@param Observer to use - can be NULL
|
|
83 |
@return Freshly created object
|
|
84 |
@leave KErrNotSupported
|
|
85 |
There is no low-level implementation for this class
|
|
86 |
*/
|
|
87 |
IMPORT_C static CMmfGlobalMegaEffect* NewL(MMmfGlobalAudioEffectObserver* aObserver);
|
|
88 |
|
|
89 |
private:
|
|
90 |
CMmfGlobalMegaEffect();
|
|
91 |
void ConstructL(MMmfGlobalAudioEffectObserver* aObserver);
|
|
92 |
};
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
#endif // MMFSTDGLBLAUDIOEFFECT_H
|