Plays an AIFF sound file from a thread using the original sound file player.
spoolsoundfile <sound file> [<num repeats>]
Plays an AIFF sound file using a thread to manage playback.
This example creates a background thread that runs independently from the foreground task. You can communicate with it via signals. This could be built into a fancier soundfile server using messages.
This example uses the original Sound File Player in music.lib. See tsp_spoolsoundfile for an example using the Advanced Sound Player to do the same thing.
spoolsoundfile.c
examples/Audio
playsoundfile, tsp_spoolsoundfile