|
||
class CoeSoundPlayer;
Utility class for simple sound playing.
Must be used in the same thread as an active UI Control Framework environment (CCoeEnv
).
This class plays the sound specified by a TBaSystemSoundType
object. The caller can request the sound to be repeated, and the time between repeats. If the exact sound cannot be found
on a particular device, a match only by category (first UID) is used. No sound will play if a match is not found.
Defined in CoeSoundPlayer
:
CancelSound(const TBaSystemSoundType &)
Stops playing the specified sound.ENoRepeat
ERepeatForever
PlaySound(const TBaSystemSoundType &)
Plays the specified sound.PlaySound(const TBaSystemSoundType &,TInt,const TTimeIntervalMicroSeconds32 &)
Plays the specified sound for the specifed number of times with the specified in...PlaySoundNow(const TBaSystemSoundType &)
Plays the specified sound, interrupting any other sound that is currently playin...PlaySoundNow(const TBaSystemSoundType &,TInt,const TTimeIntervalMicroSeconds32 &)
Plays the specified sound the specifed number of times with the specified interv...anonymous
static inline void PlaySound(const TBaSystemSoundType &aType);
Plays the specified sound.
This function only interrupts another, currently playing, sound if the new sound has a higher priority than the currently
playing sound. If you wish to interrupt any currently playing sound and play a new one, use CoeSoundPlayer::PlaySoundNow(const TBaSystemSoundType &)
instead of CoeSoundPlayer::PlaySound(const TBaSystemSoundType &)
.
|
static inline void PlaySound(const TBaSystemSoundType &aType, TInt aPlayCount, const TTimeIntervalMicroSeconds32 &aGap);
Plays the specified sound for the specifed number of times with the specified interval.
This function only interrupts another, currently playing, sound if the new sound has a higher priority than the current one.
If you wish to interrupt any currently playing sound and play a new one, use CoeSoundPlayer::PlaySoundNow(const TBaSystemSoundType &)
instead of CoeSoundPlayer::PlaySound(const TBaSystemSoundType &)
.
|
static inline void PlaySoundNow(const TBaSystemSoundType &aType);
Plays the specified sound, interrupting any other sound that is currently playing.
|
static inline void PlaySoundNow(const TBaSystemSoundType &aType, TInt aPlayCount, const TTimeIntervalMicroSeconds32 &aGap);
Plays the specified sound the specifed number of times with the specified interval, interrupting any other sound that is currently playing.
|
IMPORT_C static void CancelSound(const TBaSystemSoundType &aType);
Stops playing the specified sound.
|