Play a sound on the mixer
<mixer>.play( | |
filename | |
flags = viz.PLAY | |
) |
Modes |
Description |
viz.PLAY |
Play the sound from the beginning to end once |
viz.LOOP |
Play the sound from beginning to end on a continuous loop |
viz.STOP |
Stop playing the sound if currently playing |
viz.STOP_LOOP |
Stop looping the sound, if currently looping. |
viz.PAUSE |
Pause the sound, if currently playing. |
viz.RESUME |
Resume playing the sound, if currently paused. |
viz.SOUND_PRELOAD |
Preload the sound to prevent any delay when playing sound for first time |