equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * MsgEdito audio media control. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // --------------------------------------------------------- |
|
22 // CMsgAudioControl::Volume |
|
23 // --------------------------------------------------------- |
|
24 // |
|
25 inline TInt CMsgAudioControl::Volume() |
|
26 { |
|
27 TInt volume( 0 ); |
|
28 if ( iAudioPlayer ) |
|
29 { |
|
30 iAudioPlayer->GetVolume( volume ); |
|
31 } |
|
32 return volume; |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------- |
|
36 // CMsgAudioControl::MaxVolume |
|
37 // --------------------------------------------------------- |
|
38 // |
|
39 inline TInt CMsgAudioControl::MaxVolume() |
|
40 { |
|
41 TInt volume( 0 ); |
|
42 if ( iAudioPlayer ) |
|
43 { |
|
44 volume = iAudioPlayer->MaxVolume( ); |
|
45 } |
|
46 return volume; |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------- |
|
50 // CMsgAudioControl::SetVolume |
|
51 // --------------------------------------------------------- |
|
52 // |
|
53 inline void CMsgAudioControl::SetVolume( TInt aVolume ) |
|
54 { |
|
55 if ( iAudioPlayer ) |
|
56 { |
|
57 iAudioPlayer->SetVolume( aVolume ); |
|
58 } |
|
59 } |
|
60 |
|
61 // End of File |