spoolsoundfile <sound file> [<num repeats>]
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.
playsoundfile, tsp_spoolsoundfile