Interface IPlayableSound
Interface for a playable sound.
A playable sound can loop (ref IsLooped), be played (ref Play()), be paused (ref Pause()), be resumed (ref Play()),
be stopped (ref Stop()) and be attenuated (ref Volume).
To query the current state of a sound use the Play
Properties
IsLooping
Gets or sets whether the sound is automatically looping from beginning when it reaches the end.
Property Value
PlayState
The current state of the sound.
Property Value
Volume
The global volume at which the sound is played.
Property Value
Remarks
Volume is ranging from 0.0f (silence) to 1.0f (full volume). Values beyond those limits are clamped.
Methods
Pause()
Pause the sounds.
Remarks
A call to Pause when the sound is already paused or stopped has no effects.
Play()
Start or resume playing the sound.
Remarks
A call to Play when the sound is already playing has no effects.
Stop()
Stop playing the sound immediately and reset the sound to the beginning of the track.
Remarks
A call to Stop when the sound is already stopped has no effects