ToggleSoundPause
From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 14:57, 26 November 2013 by Vis apiuser (talk)
toggleSoundPause
Available since: v3.8
Pause/resume the specified sound.
Lua Syntax:
toggleSoundPause(soundID)
Arguments
soundID
- int - ID of sound which should be paused/resumed.
Flags
Return Values
- status
- True if sound was successfully paused/resumed, false otherwise.
Examples
Example 1:
local soundID = getSoundId('vispath:sounds/example.ogg')
toggleSoundPause(soundID)