underrun
underrun copied to clipboard
Ensure audio clips are valid before attempting to play them
This is to address issue #5. main.js calls terminal_write_line, which calls audio_play to play an audio clip. But this all happens before audio_init is called (which is where the audio clips are generated). The change just suppresses playing clips that haven't been initialized yet.