Audio_play_music - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
audio_play_music(sound,loop)
Plays a sound resource as music.
Parameter | Data Type | Description |
---|---|---|
sound | integer | index of the sound |
loop | boolean | whether to loop the sound |
void: This function does not return anything.
<syntaxhighlight lang="edl"> // demonstrates playing a sound as music audio_play_music(snd_bgmusic); </syntaxhighlight>
- Notation
- Description
- Parameters
- **sound**: index of the sound - **loop**: boolean (true or false) whether to loop the sound
- Return Values
- Example Call
Example of using the function.