- Pause / resume audio as an option instead of stopping it
- Being able to tell an audio track to play after a certain amount of time
- Being able to detect if an audio component is currently playing any audio
- Being able to get the amount of an audio file has played through already
sound.get_time_played(audio_component) -- returns amount of time that an audio component has played so far if it is still playing audio, returns false if not playing audio?
sound.is_playing(audio_component) -- returns true if a component is currently playing audio, false if it is not
msg.post("#sound", "pause_sound") -- pause any playing audio - as a convenience for handling pause screens for example
msg.post("#sound", "resume_sound") -- resume any playing audio that has been paused
msg.post("#sound", "play_sound_after", {time = 1.25, delay = 0, gain = 0.5}) -- be able to skip a portion of an audio file when playing
Or add something like “time” as a field for normal play_sound.
“loop” should also probably be a field in play_sound too and not just as a setting in the component properties. Then if it’s a value passed in as 1 or 0 override the property value.
Are there any existing audio tickets?