Difference between revisions of "AGIWiki/Sound command"
< AGIWiki
Jump to navigation
Jump to search
m |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 19: | Line 19: | ||
== Example == | == Example == | ||
< | <syntaxhighlight lang="cpp"> | ||
load.sound(22); | load.sound(22); | ||
sound(22, f99); | sound(22, f99); | ||
</ | </syntaxhighlight> | ||
== | == Technical Information == | ||
Available in all AGI versions | {| border="1" cellpadding="2" | ||
| style="background-color: #efefef" | '''Required interpreter version''' | |||
= | | Available in all AGI versions | ||
|- | |||
| style="background-color: #efefef" | '''Bytecode value''' | |||
| 0x63 | |||
|} | |||
== See Also == | == See Also == |
Latest revision as of 15:07, 25 October 2018
sound
The sound command plays a loaded sound resource.
Syntax
sound(byt SOUNDNUM, flg fDONE);
Remarks
The sound must be loaded with the load.sound
command before it can be played.
The flag fDONE is cleared before the sound starts. When the sound stops playing (by reaching the end of the resource, or by issuing the stop.sound
command) fDONE is set to TRUE.
If a sound is currently being played, it will stop, and its done flag will be set before this sound is played.
Example
load.sound(22);
sound(22, f99);
Technical Information
Required interpreter version | Available in all AGI versions |
Bytecode value | 0x63 |
See Also
Sources
- WinAGI help file