TrustedUser
2,147
edits
(Created page with "__NOTOC__ {{AGIWiki}} == sound == The '''sound''' command plays a loaded sound resource. == Syntax == sound(byt SOUNDNUM, flg fDON...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
sound([[AGIWiki/Argument types|byt]] SOUNDNUM, [[AGIWiki/Flag|flg]] fDONE); | sound([[AGIWiki/Argument types|byt]] SOUNDNUM, [[AGIWiki/Flag|flg]] fDONE); | ||
== Remarks | == Remarks == | ||
The sound must be loaded with the [[AGIWiki/load.sound|<code>load.sound</code>]] command before it can be played. | The sound must be loaded with the [[AGIWiki/load.sound|<code>load.sound</code>]] command before it can be played. | ||
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 == | ||
Line 39: | Line 41: | ||
* [[AGIWiki/WinAGI|WinAGI]] help file | * [[AGIWiki/WinAGI|WinAGI]] help file | ||
[[Category:AGIWiki/Sounds Commands]] |