| class CMdaAudioPlayerUtility : public CBase | 
Plays sampled audio data.
The class offers a simple interface to open, play and obtain information from, sampled audio data. The audio data can be supplied either in a file (file-based), as a descriptor (descriptor-based) or as a URL reference (since version 7.0s).
While this class is abstract, the three static functions construct, initialise and return pointers to instances of concrete classes derived from this abstract class.
5.0
| Private Member Functions | |
|---|---|
| CMdaAudioPlayerUtility() | |
| Protected Attributes | |
|---|---|
| CMMFMdaAudioPlayerUtility * | iProperties | 
| IMPORT_C TInt | CancelRegisterAudioResourceNotification | ( | TUid | aNotificationEventId | ) | 
| TUid aNotificationEventId | 
| IMPORT_C const CMMFControllerImplementationInformation & | ControllerImplementationInformationL | ( | ) | 
| IMPORT_C void | CustomCommandAsync | ( | const TMMFMessageDestinationPckg & | aDestination, | 
| TInt | aFunction, | |||
| const TDesC8 & | aDataTo1, | |||
| const TDesC8 & | aDataTo2, | |||
| TDes8 & | aDataFrom, | |||
| TRequestStatus & | aStatus | |||
| ) | ||||
| const TMMFMessageDestinationPckg & aDestination | |
| TInt aFunction | |
| const TDesC8 & aDataTo1 | |
| const TDesC8 & aDataTo2 | |
| TDes8 & aDataFrom | |
| TRequestStatus & aStatus | 
| IMPORT_C void | CustomCommandAsync | ( | const TMMFMessageDestinationPckg & | aDestination, | 
| TInt | aFunction, | |||
| const TDesC8 & | aDataTo1, | |||
| const TDesC8 & | aDataTo2, | |||
| TRequestStatus & | aStatus | |||
| ) | ||||
| const TMMFMessageDestinationPckg & aDestination | |
| TInt aFunction | |
| const TDesC8 & aDataTo1 | |
| const TDesC8 & aDataTo2 | |
| TRequestStatus & aStatus | 
| IMPORT_C TInt | CustomCommandSync | ( | const TMMFMessageDestinationPckg & | aDestination, | 
| TInt | aFunction, | |||
| const TDesC8 & | aDataTo1, | |||
| const TDesC8 & | aDataTo2, | |||
| TDes8 & | aDataFrom | |||
| ) | ||||
| const TMMFMessageDestinationPckg & aDestination | |
| TInt aFunction | |
| const TDesC8 & aDataTo1 | |
| const TDesC8 & aDataTo2 | |
| TDes8 & aDataFrom | 
| IMPORT_C TInt | CustomCommandSync | ( | const TMMFMessageDestinationPckg & | aDestination, | 
| TInt | aFunction, | |||
| const TDesC8 & | aDataTo1, | |||
| const TDesC8 & | aDataTo2 | |||
| ) | ||||
| const TMMFMessageDestinationPckg & aDestination | |
| TInt aFunction | |
| const TDesC8 & aDataTo1 | |
| const TDesC8 & aDataTo2 | 
| IMPORT_C TMMFDurationInfo | Duration | ( | TTimeIntervalMicroSeconds & | aDuration | ) | 
| TTimeIntervalMicroSeconds & aDuration | 
| IMPORT_C void | GetAudioLoadingProgressL | ( | TInt & | aPercentageComplete | ) | 
| TInt & aPercentageComplete | 
| IMPORT_C CMMFMetaDataEntry * | GetMetaDataEntryL | ( | TInt | aMetaDataIndex | ) | 
| TInt aMetaDataIndex | 
| IMPORT_C TInt | GetNumberOfMetaDataEntries | ( | TInt & | aNumEntries | ) | 
| TInt & aNumEntries | 
| IMPORT_C TInt | GetPosition | ( | TTimeIntervalMicroSeconds & | aPosition | ) | 
| TTimeIntervalMicroSeconds & aPosition | 
| IMPORT_C CMdaAudioPlayerUtility * | NewDesPlayerL | ( | const TDesC8 & | aData, | 
| MMdaAudioPlayerCallback & | aCallback, | |||
| TInt | aPriority = EMdaPriorityNormal, | |||
| TInt | aPref = EMdaPriorityPreferenceTimeAndQuality, | |||
| CMdaServer * | aServer = NULL | |||
| ) | [static] | |||
| const TDesC8 & aData | |
| MMdaAudioPlayerCallback & aCallback | |
| TInt aPriority = EMdaPriorityNormal | |
| TInt aPref = EMdaPriorityPreferenceTimeAndQuality | |
| CMdaServer * aServer = NULL | 
| IMPORT_C CMdaAudioPlayerUtility * | NewDesPlayerReadOnlyL | ( | const TDesC8 & | aData, | 
| MMdaAudioPlayerCallback & | aCallback, | |||
| TInt | aPriority = EMdaPriorityNormal, | |||
| TInt | aPref = EMdaPriorityPreferenceTimeAndQuality, | |||
| CMdaServer * | aServer = NULL | |||
| ) | [static] | |||
| const TDesC8 & aData | |
| MMdaAudioPlayerCallback & aCallback | |
| TInt aPriority = EMdaPriorityNormal | |
| TInt aPref = EMdaPriorityPreferenceTimeAndQuality | |
| CMdaServer * aServer = NULL | 
| IMPORT_C CMdaAudioPlayerUtility * | NewFilePlayerL | ( | const TDesC & | aFileName, | 
| MMdaAudioPlayerCallback & | aCallback, | |||
| TInt | aPriority = EMdaPriorityNormal, | |||
| TInt | aPref = EMdaPriorityPreferenceTimeAndQuality, | |||
| CMdaServer * | aServer = NULL | |||
| ) | [static] | |||
| const TDesC & aFileName | |
| MMdaAudioPlayerCallback & aCallback | |
| TInt aPriority = EMdaPriorityNormal | |
| TInt aPref = EMdaPriorityPreferenceTimeAndQuality | |
| CMdaServer * aServer = NULL | 
| IMPORT_C CMdaAudioPlayerUtility * | NewL | ( | MMdaAudioPlayerCallback & | aCallback, | 
| TInt | aPriority = EMdaPriorityNormal, | |||
| TInt | aPref = EMdaPriorityPreferenceTimeAndQuality | |||
| ) | [static] | |||
| MMdaAudioPlayerCallback & aCallback | |
| TInt aPriority = EMdaPriorityNormal | |
| TInt aPref = EMdaPriorityPreferenceTimeAndQuality | 
| IMPORT_C void | OpenDesL | ( | const TDesC8 & | aDescriptor | ) | 
| const TDesC8 & aDescriptor | 
| IMPORT_C void | OpenFileL | ( | const TDesC & | aFileName | ) | 
| const TDesC & aFileName | 
| IMPORT_C void | OpenFileL | ( | const TMMSource & | aSource | ) | 
| const TMMSource & aSource | 
| IMPORT_C void | OpenUrlL | ( | const TDesC & | aUrl, | 
| TInt | aIapId = KUseDefaultIap , | |||
| const TDesC8 & | aMimeType = KNullDesC8 | |||
| ) | ||||
| const TDesC & aUrl | |
| TInt aIapId = KUseDefaultIap | |
| const TDesC8 & aMimeType = KNullDesC8 | 
| IMPORT_C TInt | RegisterAudioResourceNotification | ( | MMMFAudioResourceNotificationCallback & | aCallback, | 
| TUid | aNotificationEventUid, | |||
| const TDesC8 & | aNotificationRegistrationData = KNullDesC8 | |||
| ) | ||||
| MMMFAudioResourceNotificationCallback & aCallback | |
| TUid aNotificationEventUid | |
| const TDesC8 & aNotificationRegistrationData = KNullDesC8 | 
| IMPORT_C void | RegisterForAudioLoadingNotification | ( | MAudioLoadingObserver & | aCallback | ) | 
| MAudioLoadingObserver & aCallback | 
| IMPORT_C TInt | SetBalance | ( | TInt | aBalance = KMMFBalanceCenter | ) | 
| TInt aBalance = KMMFBalanceCenter | 
| IMPORT_C TInt | SetPlayWindow | ( | const TTimeIntervalMicroSeconds & | aStart, | 
| const TTimeIntervalMicroSeconds & | aEnd | |||
| ) | ||||
| const TTimeIntervalMicroSeconds & aStart | |
| const TTimeIntervalMicroSeconds & aEnd | 
| IMPORT_C void | SetPosition | ( | const TTimeIntervalMicroSeconds & | aPosition | ) | 
| const TTimeIntervalMicroSeconds & aPosition | 
| void | SetRepeats | ( | TInt | aRepeatNumberOfTimes, | 
| const TTimeIntervalMicroSeconds & | aTrailingSilence | |||
| ) | [virtual] | |||
| TInt aRepeatNumberOfTimes | |
| const TTimeIntervalMicroSeconds & aTrailingSilence | 
| IMPORT_C TInt | SetThreadPriority | ( | const TThreadPriority & | aThreadPriority | ) | const | 
| const TThreadPriority & aThreadPriority | 
| void | SetVolumeRamp | ( | const TTimeIntervalMicroSeconds & | aRampDuration | ) | [virtual] | 
| const TTimeIntervalMicroSeconds & aRampDuration |