Vizard 7 » Tutorials & Examples » Multimedia » 3D sound » Tutorial: Controlling sound playback
7.7

Tutorial: Controlling sound playback

box.playsound('buzzer.wav',viz.LOOP)

The last argument in the playsound command can be any of the following:

Argument

Description

viz.PAUSE

stop playing the sound and save the current position

viz.STOP

stop playing the sound and reset the position to the beginning

viz.PLAY

play the sound once from its current position

viz.LOOP

play the sound continuously from its current position

Attaching 3D sound to objects

Controlling sound playback