StopSound: Difference between revisions
From The Official Visionaire Studio: Adventure Game Engine Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<div class="toccolours mw-collapsible mw-collapsed" | <div class="toccolours mw-collapsible mw-collapsed tbl-ds"> | ||
<span class="bold">Command History</span> | |||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
<div | <div class="alt-bg">Available since v3.8</div> | ||
</div></div> | </div></div> | ||
| Line 29: | Line 29: | ||
< | <span class="bold underline">Arguments</span> | ||
< | <span class="bold">id</span>: integer (number) <br/> | ||
The id for the currently playing audio file! ("sound.id") | The id for the currently playing audio file! ("sound.id") | ||
< | <span class="bold underline">Flags</span> | ||
none | none | ||
< | <span class="bold underline">Return</span> | ||
none | none | ||
{{i18n| | {{i18n|StopSound}} <br/> | ||
{| | {| class="tbl-ds" | ||
|- | |- | ||
|< | |<span class="bold">Relevant Pages</span>: [[GetSoundId|getSoundId]] - [[GetSoundProperty|getSoundProperty]] - [[SetSoundProperty|setSoundProperty]] - [[StartSound|startSound]] - [[ToggleSoundPause|toggleSoundPause]] | ||
|} | |} | ||
Revision as of 13:11, 5 April 2013
Command History
Available since v3.8
Allows you to stop any playing sound files!
Syntax:
stopSound(id)
Example 1: basic stop audio file method! (!messy)
stopSound(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")
stopSound(soundID)
Arguments
id: integer (number)
The id for the currently playing audio file! ("sound.id")
Flags
none
Return
none
|
日本語 – 正體中文 – 한국어 – Dansk – Deutsch – English – Español – Français – Italiano – Nederlands – Polski – Português – Svenska – Русский |
| Relevant Pages: getSoundId - getSoundProperty - setSoundProperty - startSound - toggleSoundPause |