Audio
 
Plays a single decoded audio file through sfxlib.

Syntax

result = Audio Play( filename )
result = Audio Loop( filename )
Audio Pause
Audio Resume
Audio Stop
status = Audio Status()

Description

Audio is the simple file playback interface. Audio Play starts a file once, Audio Loop repeats it, and the pause, resume, stop, and status commands control that active stream.

Audio Status returns 0 for stopped, 1 for playing, and 2 for paused.

Example

See examples/sfxlib/audio-play.bas, examples/sfxlib/audio-loop.bas, and examples/sfxlib/showcase.bas.

Differences from QB

  • New to FreeBASIC.

See also