Site Tools


documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs052

spoolsoundfile

Plays an AIFF sound file from a thread using the original sound file player.

Synopsis

spoolsoundfile <sound file> [<num repeats>]

Description

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.

Arguments

  • sound file Name of an AIFF file to play.
  • num repeats Number of times to repeat the sound file. Defaults to 1.

Associated Files

spoolsoundfile.c

Location

examples/Audio

See Also

playsoundfile, tsp_spoolsoundfile

documentation/development/opera/pf25/ppgfldr/smmfldr/gspfldr/12pgs052.txt · Last modified: 2022/10/10 16:53 by 127.0.0.1