Site Tools


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

ta_spool

Demonstrates the music.lib sound spooler.

Synopsis

ta_spool

Description

Uses the music.lib sound spooler to fill buffers, parse information in the buffers, signal our task when a buffer has been exhausted, and refill the buffers. Use this sample code as a basis for developing your own routines for playing large sampled files, or handling other kinds of buffered data.

When you press one of the buttons, the following events take place:

  • Button A-simulates a hold on data delivery. The application continues to consume information in its buffers.
  • Button B-stops the playback function. Releasing it restarts playback. Holding down either shift button causes the spooler to be aborted instead of merely stopped.
  • Button C-enters one-shot mode. Each C button press starts a ssplPlayData() sequence. Press the play button returns to normal mode.
  • Start Button-pauses the playback function. Releasing it lets the application continue.
  • Stop (X) Button-quit.

Associated Files

ta_spool.c

Location

examples/Audio

See Also

ssplCreateSoundSpooler, tsp_spoolsoundfile

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