class CMdaAudioToneUtility : public CBase |
Generates tones on an audio capable EPOC device.
The class offers an interface for generating tones on all audio capable EPOC devices.
To use the tone utility:
1. Create an instance by calling NewL().
2. Call the appropriate PrepareToPlay variant for the required tone type and wait for the callback indicating success.
3. Call Play and either wait for the callback to indicate completion, or call CancelPlay to end playback early.
4. Delete the instance.
It is possible to call Play before calling any PrepareToPlay variant. This will result in a default fixed sequence tone being played.
5.0
Protected Attributes | |
---|---|
CMMFMdaAudioToneUtility * | iProperties |
const TDesC & | FixedSequenceName | ( | TInt | aSequenceNumber | ) | [virtual] |
TInt aSequenceNumber |
IMPORT_C CMdaAudioToneUtility * | NewL | ( | MMdaAudioToneObserver & | aObserver, |
CMdaServer * | aServer = NULL | |||
) | [static] |
MMdaAudioToneObserver & aObserver | |
CMdaServer * aServer = NULL |
IMPORT_C CMdaAudioToneUtility * | NewL | ( | MMdaAudioToneObserver & | aObserver, |
CMdaServer * | aServer, | |||
TInt | aPriority, | |||
TInt | aPref = EMdaPriorityPreferenceTimeAndQuality | |||
) | [static] |
MMdaAudioToneObserver & aObserver | |
CMdaServer * aServer | |
TInt aPriority | |
TInt aPref = EMdaPriorityPreferenceTimeAndQuality |
void | PrepareToPlayDTMFString | ( | const TDesC & | aDTMF | ) | [virtual] |
const TDesC & aDTMF |
void | PrepareToPlayDesSequence | ( | const TDesC8 & | aSequence | ) | [virtual] |
const TDesC8 & aSequence |
IMPORT_C void | PrepareToPlayDualTone | ( | TInt | aFrequencyOne, |
TInt | aFrequencyTwo, | |||
const TTimeIntervalMicroSeconds & | aDuration | |||
) |
TInt aFrequencyOne | |
TInt aFrequencyTwo | |
const TTimeIntervalMicroSeconds & aDuration |
void | PrepareToPlayFileSequence | ( | const TDesC & | aFileName | ) | [virtual] |
const TDesC & aFileName |
IMPORT_C void | PrepareToPlayFileSequence | ( | RFile & | aFile | ) |
RFile & aFile |
void | PrepareToPlayFixedSequence | ( | TInt | aSequenceNumber | ) | [virtual] |
TInt aSequenceNumber |
void | PrepareToPlayTone | ( | TInt | aFrequency, |
const TTimeIntervalMicroSeconds & | aDuration | |||
) | [virtual] |
TInt aFrequency | |
const TTimeIntervalMicroSeconds & aDuration |
IMPORT_C void | RegisterPlayStartCallback | ( | MMdaAudioTonePlayStartObserver & | aObserver | ) |
MMdaAudioTonePlayStartObserver & aObserver |
IMPORT_C void | SetBalanceL | ( | TInt | aBalance = KMMFBalanceCenter | ) |
TInt aBalance = KMMFBalanceCenter |
void | SetDTMFLengths | ( | TTimeIntervalMicroSeconds32 | aToneLength, |
TTimeIntervalMicroSeconds32 | aToneOffLength, | |||
TTimeIntervalMicroSeconds32 | aPauseLength | |||
) | [virtual] |
TTimeIntervalMicroSeconds32 aToneLength | |
TTimeIntervalMicroSeconds32 aToneOffLength | |
TTimeIntervalMicroSeconds32 aPauseLength |
void | SetRepeats | ( | TInt | aRepeatNumberOfTimes, |
const TTimeIntervalMicroSeconds & | aTrailingSilence | |||
) | [virtual] |
TInt aRepeatNumberOfTimes | |
const TTimeIntervalMicroSeconds & aTrailingSilence |
void | SetVolumeRamp | ( | const TTimeIntervalMicroSeconds & | aRampDuration | ) | [virtual] |
const TTimeIntervalMicroSeconds & aRampDuration |