What it does
SoundInstancePlaying takes instanceID (an integer), and answers an integer. instanceID is the id of an Instance object, obtained elsewhere in the Sound family.
Syntax
SoundInstancePlaying(instanceID integer) → integerParameters
| Name | Type |
|---|---|
| instanceID | integer |
Every form returns
integer
Example · generated
DO Print(SoundInstancePlaying(1)) Sync()LOOPSoundInstancePlaying is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.