Sound Library Reference

Procedures and command families for FreeBASIC's built-in sound library.

Description
   The sound library, or sfxlib, provides generated tones, PLAY-string 
   music, sample playback, streaming audio, MIDI control, audio device 
   selection, and capture support.  Programs that use these commands link 
   the sound library automatically.

   If a program intentionally does not use the sound command surface and 
   needs selected sfxlib command words as normal identifiers, define 
   Fb_No_Sfxlib before those names are parsed.

Generated Sound
   Commands for tones, notes, PLAY strings, generated waveforms, and mix 
   state.
Digital Audio and MIDI
   Commands for loaded samples, music, streams, and MIDI.
Devices and Capture
   Commands for selecting output drivers and recording input.

Generated Sound
   Beep
      Produces a beep or a short pitched note.
   Generated Sound Commands
      Documents SOUND, TONE, NOISE, NOTE, REST, PLAY, TEMPO, CHANNEL, 
      OCTAVE, VOICE, VOL, VOLUME, BALANCE, PAN, WAVE, ENVELOPE, and 
      INSTRUMENT.
   Sound
      Plays a generated tone.
   Tone
      Plays a generated tone on a channel.
   Noise
      Plays generated noise on a channel.
   Note
      Plays a named note.
   Rest
      Waits for generated-sound playback timing.
   Play
      Plays BASIC PLAY strings.
   Tempo
      Sets or returns the generated-sound tempo.
   Channel
      Sets or returns the generated-sound channel.
   Octave
      Sets or returns the default note octave.
   Voice
      Sets or returns the default instrument.
   Vol
      Sets the master volume.
   Volume
      Sets or returns master or channel volume.
   Balance
      Sets or returns the master stereo balance.
   Pan
      Sets or returns channel stereo pan.
   Wave
      Defines a generated waveform.
   Envelope
      Defines an ADSR envelope.
   Instrument
      Defines or assigns an instrument.

Digital Audio and MIDI
   Music
      Loads, plays, loops, pauses, resumes, stops, and queries music 
      assets.
   Sfx
      Loads and controls short sound effects by id or channel.
   Audio
      Plays or loops an audio file through the simple one-stream interface.
   Stream
      Opens, plays, seeks, and stops the streaming-audio interface.
   Midi
      Opens MIDI output, plays MIDI files, and sends MIDI messages.

Devices and Capture
   Device
      Lists, selects, and queries sfxlib output devices.
   Capture
      Starts, pauses, resumes, stops, reads, and saves audio capture.

