1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
113 { |
113 { |
114 public: |
114 public: |
115 IMPORT_C static CMdaAudioPlayerUtility* NewFilePlayerL(const TDesC& aFileName, |
115 IMPORT_C static CMdaAudioPlayerUtility* NewFilePlayerL(const TDesC& aFileName, |
116 MMdaAudioPlayerCallback& aCallback, |
116 MMdaAudioPlayerCallback& aCallback, |
117 TInt aPriority = EMdaPriorityNormal, |
117 TInt aPriority = EMdaPriorityNormal, |
118 TMdaPriorityPreference aPref = EMdaPriorityPreferenceTimeAndQuality, |
118 TInt aPref = EMdaPriorityPreferenceTimeAndQuality, |
119 CMdaServer* aServer = NULL); |
119 CMdaServer* aServer = NULL); |
120 IMPORT_C static CMdaAudioPlayerUtility* NewDesPlayerL(const TDesC8& aData, |
120 IMPORT_C static CMdaAudioPlayerUtility* NewDesPlayerL(const TDesC8& aData, |
121 MMdaAudioPlayerCallback& aCallback, |
121 MMdaAudioPlayerCallback& aCallback, |
122 TInt aPriority = EMdaPriorityNormal, |
122 TInt aPriority = EMdaPriorityNormal, |
123 TMdaPriorityPreference aPref = EMdaPriorityPreferenceTimeAndQuality, |
123 TInt aPref = EMdaPriorityPreferenceTimeAndQuality, |
124 CMdaServer* aServer = NULL); |
124 CMdaServer* aServer = NULL); |
125 IMPORT_C static CMdaAudioPlayerUtility* NewDesPlayerReadOnlyL(const TDesC8& aData, |
125 IMPORT_C static CMdaAudioPlayerUtility* NewDesPlayerReadOnlyL(const TDesC8& aData, |
126 MMdaAudioPlayerCallback& aCallback, |
126 MMdaAudioPlayerCallback& aCallback, |
127 TInt aPriority = EMdaPriorityNormal, |
127 TInt aPriority = EMdaPriorityNormal, |
128 TMdaPriorityPreference aPref = EMdaPriorityPreferenceTimeAndQuality, |
128 TInt aPref = EMdaPriorityPreferenceTimeAndQuality, |
129 CMdaServer* aServer = NULL); |
129 CMdaServer* aServer = NULL); |
130 |
130 |
131 // new export from version 7.0 |
131 // new export from version 7.0 |
132 IMPORT_C static CMdaAudioPlayerUtility* NewL(MMdaAudioPlayerCallback& aCallback, |
132 IMPORT_C static CMdaAudioPlayerUtility* NewL(MMdaAudioPlayerCallback& aCallback, |
133 TInt aPriority = EMdaPriorityNormal, |
133 TInt aPriority = EMdaPriorityNormal, |
134 TMdaPriorityPreference aPref = EMdaPriorityPreferenceTimeAndQuality); |
134 TInt aPref = EMdaPriorityPreferenceTimeAndQuality); |
135 |
135 |
136 IMPORT_C void UseSharedHeap(); |
136 IMPORT_C void UseSharedHeap(); |
137 |
137 |
138 ~CMdaAudioPlayerUtility(); |
138 ~CMdaAudioPlayerUtility(); |
139 |
139 |
167 |
167 |
168 IMPORT_C TInt GetPosition(TTimeIntervalMicroSeconds& aPosition); |
168 IMPORT_C TInt GetPosition(TTimeIntervalMicroSeconds& aPosition); |
169 |
169 |
170 IMPORT_C void SetPosition(const TTimeIntervalMicroSeconds& aPosition); |
170 IMPORT_C void SetPosition(const TTimeIntervalMicroSeconds& aPosition); |
171 |
171 |
172 IMPORT_C TInt SetPriority(TInt aPriority, TMdaPriorityPreference aPref); |
172 IMPORT_C TInt SetPriority(TInt aPriority, TInt aPref); |
173 |
173 |
174 IMPORT_C TInt GetVolume(TInt& aVolume); |
174 IMPORT_C TInt GetVolume(TInt& aVolume); |
175 |
175 |
176 IMPORT_C TInt GetNumberOfMetaDataEntries(TInt& aNumEntries); |
176 IMPORT_C TInt GetNumberOfMetaDataEntries(TInt& aNumEntries); |
177 |
177 |