|
|
(14 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
− | The '''sound''' command plays a loaded sound resource.
| + | #REDIRECT [[Sound]] |
− | | |
− |
| |
− | == Syntax ==
| |
− | | |
− | sound([[Argument types|byt]] SOUNDNUM, [[Flag|flg]] fDONE);
| |
− | | |
− |
| |
− | == Remarks ==
| |
− | | |
− | The sound must be loaded with the [[load.sound|<code>load.sound</code>]] 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|<code>stop.sound</code>]] 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 ==
| |
− | | |
− | <div class="CodeBlockHeader">Code:</div>
| |
− | <syntaxhighlight lang="agi">
| |
− | load.sound(22);
| |
− | sound(22, f99);
| |
− | </syntaxhighlight>
| |
− | | |
− |
| |
− | | |
− | == Technical Information ==
| |
− | | |
− | {| class="Wikitable"
| |
− | ! '''Required interpreter version'''
| |
− | ! Available in all AGI versions
| |
− | |-
| |
− | | '''Bytecode value'''
| |
− | | 0x63
| |
− | |}
| |
− | | |
− |
| |
− | == See Also ==
| |
− | | |
− | * [[Sound Commands|Sound Commands]]
| |
− | | |
− |
| |
− | == Sources ==
| |
− | | |
− | * [[WinAGI|WinAGI]] help file
| |
− | | |
− | [[Category:Sounds Commands]]
| |