sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description: Implementation of the Loudness effect class
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
// INCLUDE FILES
|
sl@0
|
22 |
|
sl@0
|
23 |
#ifdef _DEBUG
|
sl@0
|
24 |
#include <e32svr.h>
|
sl@0
|
25 |
#endif
|
sl@0
|
26 |
|
sl@0
|
27 |
#include <LoudnessBase.h>
|
sl@0
|
28 |
#include <CustomInterfaceUtility.h>
|
sl@0
|
29 |
#include "LoudnessProxy.h"
|
sl@0
|
30 |
#include <DrmAudioSamplePlayer.h>
|
sl@0
|
31 |
#include <mdaaudioinputstream.h>
|
sl@0
|
32 |
#include <mdaaudiooutputstream.h>
|
sl@0
|
33 |
#include <mdaaudiotoneplayer.h>
|
sl@0
|
34 |
#include <mmf/server/sounddevice.h>
|
sl@0
|
35 |
#include <videoplayer.h>
|
sl@0
|
36 |
|
sl@0
|
37 |
#ifdef _DEBUG
|
sl@0
|
38 |
#define DEBPRN0 RDebug::Printf( "%s", __PRETTY_FUNCTION__);
|
sl@0
|
39 |
#define DEBPRN1(str) RDebug::Printf( "%s %s", __PRETTY_FUNCTION__, str );
|
sl@0
|
40 |
#else
|
sl@0
|
41 |
#define DEBPRN0
|
sl@0
|
42 |
#define DEBPRN1(str)
|
sl@0
|
43 |
#endif
|
sl@0
|
44 |
|
sl@0
|
45 |
// ============================ MEMBER FUNCTIONS ===============================
|
sl@0
|
46 |
|
sl@0
|
47 |
// -----------------------------------------------------------------------------
|
sl@0
|
48 |
// CLoudness::CLoudness
|
sl@0
|
49 |
// C++ default constructor can NOT contain any code, that
|
sl@0
|
50 |
// might leave.
|
sl@0
|
51 |
// -----------------------------------------------------------------------------
|
sl@0
|
52 |
//
|
sl@0
|
53 |
EXPORT_C CLoudness::CLoudness()
|
sl@0
|
54 |
: iLoudnessData(),
|
sl@0
|
55 |
iDataPckgTo(iLoudnessData)
|
sl@0
|
56 |
{
|
sl@0
|
57 |
}
|
sl@0
|
58 |
|
sl@0
|
59 |
// Destructor
|
sl@0
|
60 |
EXPORT_C CLoudness::~CLoudness()
|
sl@0
|
61 |
{
|
sl@0
|
62 |
}
|
sl@0
|
63 |
|
sl@0
|
64 |
// -----------------------------------------------------------------------------
|
sl@0
|
65 |
// CLoudness::NewL
|
sl@0
|
66 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
67 |
// -----------------------------------------------------------------------------
|
sl@0
|
68 |
//
|
sl@0
|
69 |
EXPORT_C CLoudness* CLoudness::NewL(CMdaAudioConvertUtility& aUtility)
|
sl@0
|
70 |
{
|
sl@0
|
71 |
|
sl@0
|
72 |
DEBPRN0;
|
sl@0
|
73 |
CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
|
sl@0
|
74 |
CleanupStack::PushL(customInterface);
|
sl@0
|
75 |
|
sl@0
|
76 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)customInterface->CustomInterface(KUidLoudnessEffect);
|
sl@0
|
77 |
|
sl@0
|
78 |
if ( !loudnessProxy )
|
sl@0
|
79 |
{
|
sl@0
|
80 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
81 |
CleanupStack::Pop(customInterface);
|
sl@0
|
82 |
User::Leave(KErrNotSupported);
|
sl@0
|
83 |
}
|
sl@0
|
84 |
|
sl@0
|
85 |
CleanupStack::Pop(customInterface);
|
sl@0
|
86 |
|
sl@0
|
87 |
return loudnessProxy;
|
sl@0
|
88 |
}
|
sl@0
|
89 |
|
sl@0
|
90 |
// -----------------------------------------------------------------------------
|
sl@0
|
91 |
// CLoudness::NewL
|
sl@0
|
92 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
93 |
// -----------------------------------------------------------------------------
|
sl@0
|
94 |
//
|
sl@0
|
95 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
96 |
CMdaAudioInputStream& aUtility , TBool aEnable )
|
sl@0
|
97 |
{
|
sl@0
|
98 |
|
sl@0
|
99 |
DEBPRN0;
|
sl@0
|
100 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)aUtility.CustomInterface(KUidLoudnessEffect);
|
sl@0
|
101 |
|
sl@0
|
102 |
if (loudnessProxy == NULL)
|
sl@0
|
103 |
{
|
sl@0
|
104 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
105 |
User::Leave(KErrNotSupported);
|
sl@0
|
106 |
}
|
sl@0
|
107 |
|
sl@0
|
108 |
if(aEnable)
|
sl@0
|
109 |
{
|
sl@0
|
110 |
loudnessProxy->EnableL();
|
sl@0
|
111 |
}
|
sl@0
|
112 |
|
sl@0
|
113 |
return loudnessProxy;
|
sl@0
|
114 |
}
|
sl@0
|
115 |
|
sl@0
|
116 |
// -----------------------------------------------------------------------------
|
sl@0
|
117 |
// CLoudness::NewL
|
sl@0
|
118 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
119 |
// -----------------------------------------------------------------------------
|
sl@0
|
120 |
//
|
sl@0
|
121 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
122 |
CMdaAudioOutputStream& aUtility, TBool aEnable )
|
sl@0
|
123 |
{
|
sl@0
|
124 |
|
sl@0
|
125 |
DEBPRN0;
|
sl@0
|
126 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)aUtility.CustomInterface(KUidLoudnessEffect);
|
sl@0
|
127 |
|
sl@0
|
128 |
if (loudnessProxy == NULL)
|
sl@0
|
129 |
{
|
sl@0
|
130 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
131 |
User::Leave(KErrNotSupported);
|
sl@0
|
132 |
}
|
sl@0
|
133 |
|
sl@0
|
134 |
if(aEnable)
|
sl@0
|
135 |
{
|
sl@0
|
136 |
loudnessProxy->EnableL();
|
sl@0
|
137 |
}
|
sl@0
|
138 |
|
sl@0
|
139 |
return loudnessProxy;
|
sl@0
|
140 |
}
|
sl@0
|
141 |
|
sl@0
|
142 |
// -----------------------------------------------------------------------------
|
sl@0
|
143 |
// CLoudness::NewL
|
sl@0
|
144 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
145 |
// -----------------------------------------------------------------------------
|
sl@0
|
146 |
//
|
sl@0
|
147 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
148 |
CMdaAudioPlayerUtility& aUtility , TBool aEnable)
|
sl@0
|
149 |
{
|
sl@0
|
150 |
|
sl@0
|
151 |
DEBPRN0;
|
sl@0
|
152 |
CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
|
sl@0
|
153 |
CleanupStack::PushL(customInterface);
|
sl@0
|
154 |
|
sl@0
|
155 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)customInterface->CustomInterface(KUidLoudnessEffect);
|
sl@0
|
156 |
|
sl@0
|
157 |
if ( !loudnessProxy )
|
sl@0
|
158 |
{
|
sl@0
|
159 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
160 |
CleanupStack::Pop(customInterface);
|
sl@0
|
161 |
User::Leave(KErrNotSupported);
|
sl@0
|
162 |
}
|
sl@0
|
163 |
|
sl@0
|
164 |
CleanupStack::Pop(customInterface);
|
sl@0
|
165 |
|
sl@0
|
166 |
if(aEnable)
|
sl@0
|
167 |
{
|
sl@0
|
168 |
loudnessProxy->EnableL();
|
sl@0
|
169 |
}
|
sl@0
|
170 |
|
sl@0
|
171 |
return loudnessProxy;
|
sl@0
|
172 |
}
|
sl@0
|
173 |
|
sl@0
|
174 |
// -----------------------------------------------------------------------------
|
sl@0
|
175 |
// CLoudness::NewL
|
sl@0
|
176 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
177 |
// -----------------------------------------------------------------------------
|
sl@0
|
178 |
//
|
sl@0
|
179 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
180 |
CMdaAudioRecorderUtility& aUtility, TBool aRecordStream, TBool aEnable)
|
sl@0
|
181 |
{
|
sl@0
|
182 |
|
sl@0
|
183 |
DEBPRN0;
|
sl@0
|
184 |
CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility, aRecordStream);
|
sl@0
|
185 |
CleanupStack::PushL(customInterface);
|
sl@0
|
186 |
|
sl@0
|
187 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)customInterface->CustomInterface(KUidLoudnessEffect);
|
sl@0
|
188 |
|
sl@0
|
189 |
if ( !loudnessProxy )
|
sl@0
|
190 |
{
|
sl@0
|
191 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
192 |
CleanupStack::Pop(customInterface);
|
sl@0
|
193 |
User::Leave(KErrNotSupported);
|
sl@0
|
194 |
}
|
sl@0
|
195 |
|
sl@0
|
196 |
CleanupStack::Pop(customInterface);
|
sl@0
|
197 |
|
sl@0
|
198 |
if(aEnable)
|
sl@0
|
199 |
{
|
sl@0
|
200 |
loudnessProxy->EnableL();
|
sl@0
|
201 |
}
|
sl@0
|
202 |
|
sl@0
|
203 |
return loudnessProxy;
|
sl@0
|
204 |
}
|
sl@0
|
205 |
|
sl@0
|
206 |
// -----------------------------------------------------------------------------
|
sl@0
|
207 |
// CLoudness::NewL
|
sl@0
|
208 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
209 |
// -----------------------------------------------------------------------------
|
sl@0
|
210 |
//
|
sl@0
|
211 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
212 |
CMdaAudioToneUtility& aUtility, TBool aEnable )
|
sl@0
|
213 |
{
|
sl@0
|
214 |
|
sl@0
|
215 |
DEBPRN0;
|
sl@0
|
216 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)aUtility.CustomInterface(KUidLoudnessEffect);
|
sl@0
|
217 |
|
sl@0
|
218 |
if (loudnessProxy == NULL)
|
sl@0
|
219 |
{
|
sl@0
|
220 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
221 |
User::Leave(KErrNotSupported);
|
sl@0
|
222 |
}
|
sl@0
|
223 |
|
sl@0
|
224 |
if(aEnable)
|
sl@0
|
225 |
{
|
sl@0
|
226 |
loudnessProxy->EnableL();
|
sl@0
|
227 |
}
|
sl@0
|
228 |
|
sl@0
|
229 |
return loudnessProxy;
|
sl@0
|
230 |
}
|
sl@0
|
231 |
|
sl@0
|
232 |
|
sl@0
|
233 |
// -----------------------------------------------------------------------------
|
sl@0
|
234 |
// CLoudness::NewL
|
sl@0
|
235 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
236 |
// -----------------------------------------------------------------------------
|
sl@0
|
237 |
//
|
sl@0
|
238 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
239 |
CMMFDevSound& aDevSound , TBool aEnable )
|
sl@0
|
240 |
{
|
sl@0
|
241 |
|
sl@0
|
242 |
DEBPRN0;
|
sl@0
|
243 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)aDevSound.CustomInterface(KUidLoudnessEffect);
|
sl@0
|
244 |
|
sl@0
|
245 |
if (loudnessProxy == NULL)
|
sl@0
|
246 |
{
|
sl@0
|
247 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
248 |
User::Leave(KErrNotSupported);
|
sl@0
|
249 |
}
|
sl@0
|
250 |
|
sl@0
|
251 |
if(aEnable)
|
sl@0
|
252 |
{
|
sl@0
|
253 |
loudnessProxy->EnableL();
|
sl@0
|
254 |
}
|
sl@0
|
255 |
|
sl@0
|
256 |
return loudnessProxy;
|
sl@0
|
257 |
}
|
sl@0
|
258 |
|
sl@0
|
259 |
|
sl@0
|
260 |
|
sl@0
|
261 |
// -----------------------------------------------------------------------------
|
sl@0
|
262 |
// CLoudness::NewL
|
sl@0
|
263 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
264 |
// -----------------------------------------------------------------------------
|
sl@0
|
265 |
//
|
sl@0
|
266 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
267 |
CCustomCommandUtility* aUtility , TBool aEnable)
|
sl@0
|
268 |
{
|
sl@0
|
269 |
|
sl@0
|
270 |
DEBPRN0;
|
sl@0
|
271 |
CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
|
sl@0
|
272 |
CleanupStack::PushL(customInterface);
|
sl@0
|
273 |
|
sl@0
|
274 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)customInterface->CustomInterface(KUidLoudnessEffect);
|
sl@0
|
275 |
|
sl@0
|
276 |
if ( !loudnessProxy )
|
sl@0
|
277 |
{
|
sl@0
|
278 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
279 |
CleanupStack::Pop(customInterface);
|
sl@0
|
280 |
User::Leave(KErrNotSupported);
|
sl@0
|
281 |
}
|
sl@0
|
282 |
|
sl@0
|
283 |
CleanupStack::Pop(customInterface);
|
sl@0
|
284 |
|
sl@0
|
285 |
if(aEnable)
|
sl@0
|
286 |
{
|
sl@0
|
287 |
loudnessProxy->EnableL();
|
sl@0
|
288 |
}
|
sl@0
|
289 |
|
sl@0
|
290 |
return loudnessProxy;
|
sl@0
|
291 |
}
|
sl@0
|
292 |
|
sl@0
|
293 |
// -----------------------------------------------------------------------------
|
sl@0
|
294 |
// CLoudness::NewL
|
sl@0
|
295 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
296 |
// -----------------------------------------------------------------------------
|
sl@0
|
297 |
//
|
sl@0
|
298 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
299 |
MCustomInterface& aCustomInterface , TBool aEnable)
|
sl@0
|
300 |
{
|
sl@0
|
301 |
|
sl@0
|
302 |
DEBPRN0;
|
sl@0
|
303 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)aCustomInterface.CustomInterface(KUidLoudnessEffect);
|
sl@0
|
304 |
|
sl@0
|
305 |
if ( !loudnessProxy )
|
sl@0
|
306 |
{
|
sl@0
|
307 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
308 |
User::Leave(KErrNotSupported);
|
sl@0
|
309 |
}
|
sl@0
|
310 |
|
sl@0
|
311 |
if(aEnable)
|
sl@0
|
312 |
{
|
sl@0
|
313 |
loudnessProxy->EnableL();
|
sl@0
|
314 |
}
|
sl@0
|
315 |
|
sl@0
|
316 |
return loudnessProxy;
|
sl@0
|
317 |
}
|
sl@0
|
318 |
|
sl@0
|
319 |
// -----------------------------------------------------------------------------
|
sl@0
|
320 |
// CLoudness::NewL
|
sl@0
|
321 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
322 |
// -----------------------------------------------------------------------------
|
sl@0
|
323 |
//
|
sl@0
|
324 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
325 |
CMidiClientUtility& aUtility , TBool aEnable)
|
sl@0
|
326 |
{
|
sl@0
|
327 |
|
sl@0
|
328 |
DEBPRN0;
|
sl@0
|
329 |
CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
|
sl@0
|
330 |
CleanupStack::PushL(customInterface);
|
sl@0
|
331 |
|
sl@0
|
332 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)customInterface->CustomInterface(KUidLoudnessEffect);
|
sl@0
|
333 |
|
sl@0
|
334 |
if ( !loudnessProxy )
|
sl@0
|
335 |
{
|
sl@0
|
336 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
337 |
CleanupStack::Pop(customInterface);
|
sl@0
|
338 |
User::Leave(KErrNotSupported);
|
sl@0
|
339 |
}
|
sl@0
|
340 |
|
sl@0
|
341 |
CleanupStack::Pop(customInterface);
|
sl@0
|
342 |
|
sl@0
|
343 |
if(aEnable)
|
sl@0
|
344 |
{
|
sl@0
|
345 |
loudnessProxy->EnableL();
|
sl@0
|
346 |
}
|
sl@0
|
347 |
|
sl@0
|
348 |
return loudnessProxy;
|
sl@0
|
349 |
}
|
sl@0
|
350 |
|
sl@0
|
351 |
// -----------------------------------------------------------------------------
|
sl@0
|
352 |
// CLoudness::NewL
|
sl@0
|
353 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
354 |
// -----------------------------------------------------------------------------
|
sl@0
|
355 |
//
|
sl@0
|
356 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
357 |
CDrmPlayerUtility& aUtility, TBool aEnable)
|
sl@0
|
358 |
{
|
sl@0
|
359 |
|
sl@0
|
360 |
DEBPRN0;
|
sl@0
|
361 |
CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
|
sl@0
|
362 |
CleanupStack::PushL(customInterface);
|
sl@0
|
363 |
|
sl@0
|
364 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)customInterface->CustomInterface(KUidLoudnessEffect);
|
sl@0
|
365 |
|
sl@0
|
366 |
if ( !loudnessProxy )
|
sl@0
|
367 |
{
|
sl@0
|
368 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
369 |
CleanupStack::Pop(customInterface);
|
sl@0
|
370 |
User::Leave(KErrNotSupported);
|
sl@0
|
371 |
}
|
sl@0
|
372 |
|
sl@0
|
373 |
CleanupStack::Pop(customInterface);
|
sl@0
|
374 |
|
sl@0
|
375 |
if(aEnable)
|
sl@0
|
376 |
{
|
sl@0
|
377 |
loudnessProxy->EnableL();
|
sl@0
|
378 |
}
|
sl@0
|
379 |
|
sl@0
|
380 |
return loudnessProxy;
|
sl@0
|
381 |
}
|
sl@0
|
382 |
|
sl@0
|
383 |
// -----------------------------------------------------------------------------
|
sl@0
|
384 |
// CLoudness::NewL
|
sl@0
|
385 |
// Static function for creating an instance of the Loudness object.
|
sl@0
|
386 |
// -----------------------------------------------------------------------------
|
sl@0
|
387 |
//
|
sl@0
|
388 |
EXPORT_C CLoudness* CLoudness::NewL(
|
sl@0
|
389 |
CVideoPlayerUtility& aUtility, TBool aEnable)
|
sl@0
|
390 |
{
|
sl@0
|
391 |
|
sl@0
|
392 |
DEBPRN0;
|
sl@0
|
393 |
CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
|
sl@0
|
394 |
CleanupStack::PushL(customInterface);
|
sl@0
|
395 |
|
sl@0
|
396 |
CLoudnessProxy* loudnessProxy = (CLoudnessProxy*)customInterface->CustomInterface(KUidLoudnessEffect);
|
sl@0
|
397 |
|
sl@0
|
398 |
if ( !loudnessProxy )
|
sl@0
|
399 |
{
|
sl@0
|
400 |
DEBPRN1("No Adaptation Support - leaving");
|
sl@0
|
401 |
CleanupStack::Pop(customInterface);
|
sl@0
|
402 |
User::Leave(KErrNotSupported);
|
sl@0
|
403 |
}
|
sl@0
|
404 |
|
sl@0
|
405 |
CleanupStack::Pop(customInterface);
|
sl@0
|
406 |
|
sl@0
|
407 |
if(aEnable)
|
sl@0
|
408 |
{
|
sl@0
|
409 |
loudnessProxy->EnableL();
|
sl@0
|
410 |
}
|
sl@0
|
411 |
|
sl@0
|
412 |
return loudnessProxy;
|
sl@0
|
413 |
}
|
sl@0
|
414 |
|
sl@0
|
415 |
// -----------------------------------------------------------------------------
|
sl@0
|
416 |
// CLoudness::Uid
|
sl@0
|
417 |
// -----------------------------------------------------------------------------
|
sl@0
|
418 |
//
|
sl@0
|
419 |
EXPORT_C TUid CLoudness::Uid() const
|
sl@0
|
420 |
{
|
sl@0
|
421 |
return KUidLoudnessEffect;
|
sl@0
|
422 |
}
|
sl@0
|
423 |
|
sl@0
|
424 |
|
sl@0
|
425 |
// -----------------------------------------------------------------------------
|
sl@0
|
426 |
// CLoudness::DoEffectData
|
sl@0
|
427 |
// -----------------------------------------------------------------------------
|
sl@0
|
428 |
//
|
sl@0
|
429 |
EXPORT_C const TDesC8& CLoudness::DoEffectData()
|
sl@0
|
430 |
{
|
sl@0
|
431 |
DEBPRN0;
|
sl@0
|
432 |
iDataPckgTo = iLoudnessData;
|
sl@0
|
433 |
return iDataPckgTo;
|
sl@0
|
434 |
}
|
sl@0
|
435 |
|
sl@0
|
436 |
// -----------------------------------------------------------------------------
|
sl@0
|
437 |
// CLoudness::SetEffectData
|
sl@0
|
438 |
// -----------------------------------------------------------------------------
|
sl@0
|
439 |
//
|
sl@0
|
440 |
EXPORT_C void CLoudness::SetEffectData(
|
sl@0
|
441 |
const TDesC8& aEffectDataBuffer )
|
sl@0
|
442 |
{
|
sl@0
|
443 |
DEBPRN0;
|
sl@0
|
444 |
TEfLoudnessDataPckg dataPckg;
|
sl@0
|
445 |
dataPckg.Copy(aEffectDataBuffer);
|
sl@0
|
446 |
iLoudnessData = dataPckg();
|
sl@0
|
447 |
iEnabled = iLoudnessData.iEnabled;
|
sl@0
|
448 |
iEnforced = iLoudnessData.iEnforced;
|
sl@0
|
449 |
iHaveUpdateRights = iLoudnessData.iHaveUpdateRights;
|
sl@0
|
450 |
|
sl@0
|
451 |
}
|
sl@0
|
452 |
|
sl@0
|
453 |
|
sl@0
|
454 |
// ========================== OTHER EXPORTED FUNCTIONS =========================
|
sl@0
|
455 |
|
sl@0
|
456 |
// End of File
|
sl@0
|
457 |
|