Difference between revisions of "Sound Command"
From AGI Wiki
Jump to navigationJump to searchLine 41: | Line 41: | ||
| | ||
+ | == Sources == | ||
+ | |||
+ | * [[WinAGI|WinAGI]] help file | ||
+ | | ||
== See Also == | == See Also == | ||
Line 47: | Line 51: | ||
| | ||
− | |||
− | |||
− | |||
[[Category:Sound Commands]] | [[Category:Sound Commands]] | ||
[[Category:References]] | [[Category:References]] | ||
[[Category:Logic]] | [[Category:Logic]] |
Revision as of 22:16, 25 December 2013
The sound command plays a loaded sound resource.
Syntax
Starts playback of a SOUND resource. n. When finished, Flag(m) is set to 1.
sound(n, m);
Where "n" is the SOUND resource number.
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
Code:
<syntaxhighlight lang="agi"> load.sound(22); sound(22, f99); </syntaxhighlight>
Technical Information
Required interpreter version | Bytecode Value |
---|---|
Available in all AGI versions | 0x63 |
Sources
- WinAGI help file
See Also