|
1 /* |
|
2 * Copyright ( c ) 2009 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: Framework wraper for Audio Effects. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "mpaudioeffectsframeworkwrapper.h" |
|
19 #include "mpaudioeffectsframeworkwrapper_p.h" |
|
20 #include "mptrace.h" |
|
21 |
|
22 /*! |
|
23 \class MpAudioEffectsFrameworkWrapper |
|
24 \brief Wrapper for Audio Effects framework. |
|
25 |
|
26 Audio effects framework wrapper provides Qt style interface to the audio effects framework |
|
27 utilities. Its implementation is hidden using private class data pattern. |
|
28 */ |
|
29 |
|
30 /*! |
|
31 Constructor. |
|
32 */ |
|
33 MpAudioEffectsFrameworkWrapper::MpAudioEffectsFrameworkWrapper() |
|
34 :d_ptr( new MpAudioEffectsFrameworkWrapperPrivate() ) |
|
35 { |
|
36 d_ptr->init(); |
|
37 } |
|
38 |
|
39 /*! |
|
40 Destructor. |
|
41 */ |
|
42 MpAudioEffectsFrameworkWrapper::~MpAudioEffectsFrameworkWrapper() |
|
43 { |
|
44 TX_ENTRY |
|
45 delete d_ptr; |
|
46 TX_EXIT |
|
47 } |
|
48 |
|
49 /*! |
|
50 Returns the current persistent balance. |
|
51 */ |
|
52 int MpAudioEffectsFrameworkWrapper::balance() |
|
53 { |
|
54 TX_LOG |
|
55 return d_ptr->balance(); |
|
56 } |
|
57 |
|
58 /*! |
|
59 Returns the current persistent loudness. |
|
60 */ |
|
61 bool MpAudioEffectsFrameworkWrapper::loudness() |
|
62 { |
|
63 TX_LOG |
|
64 return d_ptr->loudness(); |
|
65 } |
|
66 |
|
67 /*! |
|
68 Set the \a balance. |
|
69 */ |
|
70 void MpAudioEffectsFrameworkWrapper::setBalance( int balance ) |
|
71 { |
|
72 TX_ENTRY |
|
73 d_ptr->setBalance( balance ); |
|
74 TX_EXIT |
|
75 } |
|
76 |
|
77 /*! |
|
78 Set the loudness \a mode. |
|
79 */ |
|
80 void MpAudioEffectsFrameworkWrapper::setLoudness( bool mode ) |
|
81 { |
|
82 TX_ENTRY |
|
83 d_ptr->setLoudness( mode ); |
|
84 TX_EXIT |
|
85 } |
|
86 |