1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: audio effect properties stub for testing mpmpxasframeworkwrapper |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <s32file.h> |
|
19 #include <s32std.h> |
|
20 #include <f32file.h> |
|
21 #include <mpxlog.h> |
|
22 #include "stub/inc/mpxaudioeffectproperties.h" |
|
23 |
|
24 |
|
25 /*! |
|
26 Stub function. |
|
27 */ |
|
28 CMPXAudioEffectProperties::CMPXAudioEffectProperties():iBalance(0), |
|
29 iLoudness(EFalse), |
|
30 iLoadFromFile(EFalse), |
|
31 iSaveToFile(EFalse), |
|
32 iLeave(EFalse) |
|
33 |
|
34 { |
|
35 } |
|
36 |
|
37 /*! |
|
38 Stub function. |
|
39 */ |
|
40 CMPXAudioEffectProperties::~CMPXAudioEffectProperties() |
|
41 { |
|
42 } |
|
43 |
|
44 /*! |
|
45 Stub function. |
|
46 */ |
|
47 TInt CMPXAudioEffectProperties::Balance() |
|
48 { |
|
49 return iBalance; |
|
50 } |
|
51 |
|
52 /*! |
|
53 Stub function. |
|
54 */ |
|
55 TBool CMPXAudioEffectProperties::Loudness() |
|
56 { |
|
57 return iLoudness; |
|
58 } |
|
59 |
|
60 /*! |
|
61 Stub function. |
|
62 */ |
|
63 void CMPXAudioEffectProperties::SetBalance(TInt aBalance) |
|
64 { |
|
65 iBalance = aBalance; |
|
66 } |
|
67 |
|
68 /*! |
|
69 Stub function. |
|
70 */ |
|
71 void CMPXAudioEffectProperties::SetLoudness(TBool aLoudness) |
|
72 { |
|
73 iLoudness = aLoudness; |
|
74 } |
|
75 |
|
76 /*! |
|
77 Stub function. |
|
78 */ |
|
79 void CMPXAudioEffectProperties::Reset() |
|
80 { |
|
81 MPX_DEBUG1("CMPXAudioEffectProperties::Reset"); |
|
82 iBalance = 0; |
|
83 iLoudness = EFalse; |
|
84 iLeave = EFalse; |
|
85 iLoadFromFile = EFalse; |
|
86 } |
|
87 |
|
88 /*! |
|
89 Stub function. |
|
90 */ |
|
91 void CMPXAudioEffectProperties::SaveToFileL() |
|
92 { |
|
93 MPX_DEBUG1("CMPXAudioEffectProperties::SaveToFileL <---"); |
|
94 iSaveToFile = ETrue; |
|
95 MPX_DEBUG1("CMPXAudioEffectProperties::SaveToFileL --->"); |
|
96 } |
|
97 |
|
98 /*! |
|
99 Stub function. |
|
100 */ |
|
101 void CMPXAudioEffectProperties::LoadFromFileL() |
|
102 { |
|
103 MPX_DEBUG1("CMPXAudioEffectProperties::LoadFromFileL <---"); |
|
104 if(iLeave){ |
|
105 Reset(); |
|
106 }else{ |
|
107 iLoadFromFile = ETrue; |
|
108 } |
|
109 MPX_DEBUG1("CMPXAudioEffectProperties::LoadFromFileL --->"); |
|
110 } |
|
111 |
|
112 //end of file |
|