Plays an AIFF sound file from a thread using the advanced sound player.
tsp_spoolsoundfile <sound file> [<num repeats>]
Plays an AIFF sound file using a thread to manage playback.
This is a variation on the original SpoolSoundfile program that used the original sound file player-see CreateSoundFilePlayer()
. This version uses the Advanced Sound Player (see spCreatePlayer())
, which supports looping sound file playback.
Calls ScanSample()
to get information used to pick a sample player which prevents playing AIFF files with sustain or release loops (see ScanSample()
Caveats).
tsp_spoolsoundfile.c
examples/Audio/Advanced_Sound_Player
spCreatePlayer, spoolsoundfile, tsp_algorithmic, tsp_rooms