Difference between revisions of "ToggleSoundPause"
From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 42: | Line 42: | ||
<b><u>Return</u></b> | <b><u>Return</u></b> | ||
− | <b>success</b> | + | <b>success</b> <br/> |
Returns true or false boolean value depending on if the linked sound was successfully paused or resumed! | Returns true or false boolean value depending on if the linked sound was successfully paused or resumed! | ||
{{i18n|ToggleSoundPause}} <br/> | {{i18n|ToggleSoundPause}} <br/> |
Revision as of 19:16, 14 March 2013
Command History
Available since v3.8
Allows you to toggle between pause & resume of an active linked sound!
Syntax:
toggleSoundPause(id)
Example 1: basic toggle pause/resume audio file method! (!messy)
toggleSoundPause(getSoundId("sounds/example.ogg"))
Example 2: again using sound.id via a variable!
-- let's store the sound.id for example.ogg inside of a variable!
local soundID = getSoundId("sounds/example.ogg")
toggleSoundPause(soundID)
Arguments
id: integer (number)
The id for the currently playing audio file! ("sound.id")
Flags
none
Return
success
Returns true or false boolean value depending on if the linked sound was successfully paused or resumed!
日本語 – 正體中文 – 한국어 – Dansk – Deutsch – English – Español – Français – Italiano – Nederlands – Polski – Português – Svenska – Русский |
Relevant Pages: getSoundId - getSoundProperty - setSoundProperty - startSound - stopSound |