FMExAudioPlayer Class
This class is used to play and manipulate FMExAudio instances. By design, each FMExAudioPlayer instance will only playback one sound at a time (it essentially only has one "voice"). Calling one of the Play methods simply stops any current playback and starts playing the new sound.
Note: Calling a Play method without specifying an audio sample and with no DefaultAudio defined will cause any current playback to stop. Playback will also stop if an FMExAudioPlayer goes out of scope.
Constructors
Expand All | Collapse All
-
FMExAudioPlayer ( audio As FMExAudio = Nil )
The optional audio parameter will be assigned to the DefaultAudio property.
Properties
Expand All | Collapse All
-
DefaultAudio As FMExAudio
Play methods will play this sound if they are called without specifying another FMExAudio instance. If DefaultAudio is Nil (default) no sound will play unless specified in a Play method.
Methods
Expand All | Collapse All
-
Play ( audio As FMExAudio = Nil )
Plays the passed audio from the beginning, or the DefaultAudio if no audio is specified. Audio playback will stop when the end of the sound is reached. -
PlayLooping ( audio As FMExAudio = Nil, count As Integer = -1 )
Plays the passed audio from the beginning, or the DefaultAudio if no audio is specified. The optional count parameter defines how many times to loop after the first playback. A count of 0 will play once, 1 will play twice, etc. The default count of -1 will loop indefinitely. -
PlayLoopingPalendrone ( audio As FMExAudio = Nil, count As Integer = -1 )
Same as PlayLooping, however the audio is played backwards when the end or loop point is encountered.