equal
deleted
inserted
replaced
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2003-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: |
218 { |
218 { |
219 class CBody; |
219 class CBody; |
220 public: |
220 public: |
221 IMPORT_C static CMidiClientUtility* NewL(MMidiClientUtilityObserver& aObserver, |
221 IMPORT_C static CMidiClientUtility* NewL(MMidiClientUtilityObserver& aObserver, |
222 TInt aPriority = EMdaPriorityNormal, |
222 TInt aPriority = EMdaPriorityNormal, |
223 TMdaPriorityPreference aPref = EMdaPriorityPreferenceTimeAndQuality); |
223 TInt aPref = EMdaPriorityPreferenceTimeAndQuality); |
224 |
224 |
225 // alternative NewL for selecting shared/separate controller heap(s) |
225 // alternative NewL for selecting shared/separate controller heap(s) |
226 IMPORT_C static CMidiClientUtility* NewL(MMidiClientUtilityObserver& aObserver, |
226 IMPORT_C static CMidiClientUtility* NewL(MMidiClientUtilityObserver& aObserver, |
227 TInt aPriority, |
227 TInt aPriority, |
228 TMdaPriorityPreference aPref, |
228 TInt aPref, |
229 TBool aUseSharedHeap); |
229 TBool aUseSharedHeap); |
230 |
230 |
231 /** Destructor */ |
231 /** Destructor */ |
232 virtual ~CMidiClientUtility(); |
232 virtual ~CMidiClientUtility(); |
233 IMPORT_C TMidiState State() const; |
233 IMPORT_C TMidiState State() const; |
298 IMPORT_C TInt MaxVolumeL() const; |
298 IMPORT_C TInt MaxVolumeL() const; |
299 IMPORT_C void SetVolumeL(TInt aVolume); |
299 IMPORT_C void SetVolumeL(TInt aVolume); |
300 IMPORT_C void SetVolumeRampL(const TTimeIntervalMicroSeconds& aRampDuration); |
300 IMPORT_C void SetVolumeRampL(const TTimeIntervalMicroSeconds& aRampDuration); |
301 IMPORT_C TInt GetBalanceL() const; |
301 IMPORT_C TInt GetBalanceL() const; |
302 IMPORT_C void SetBalanceL(TInt aBalance = KMMFBalanceCenter); |
302 IMPORT_C void SetBalanceL(TInt aBalance = KMMFBalanceCenter); |
303 IMPORT_C void SetPriorityL(TInt aPriority, TMdaPriorityPreference aPref); |
303 IMPORT_C void SetPriorityL(TInt aPriority, TInt aPref); |
304 IMPORT_C TInt NumberOfMetaDataEntriesL() const; |
304 IMPORT_C TInt NumberOfMetaDataEntriesL() const; |
305 IMPORT_C CMMFMetaDataEntry* GetMetaDataEntryL(TInt aMetaDataIndex) const; |
305 IMPORT_C CMMFMetaDataEntry* GetMetaDataEntryL(TInt aMetaDataIndex) const; |
306 /** |
306 /** |
307 * @deprecated SetBankL is deprecated due to Mobile XMF specification requirement that user instruments (custom instruments) override standard instruments. |
307 * @deprecated SetBankL is deprecated due to Mobile XMF specification requirement that user instruments (custom instruments) override standard instruments. |
308 */ |
308 */ |