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