Stream
 
Opens and controls the sfxlib streaming-audio interface.

Syntax

result = Stream Open( filename )
result = Stream Play()
Stream Pause
Stream Resume
Stream Stop
position = Stream Position()
result = Stream Seek( position )

Description

Stream provides explicit control over a streaming audio source. Open a file with Stream Open, start it with Stream Play, and use Stream Seek and Stream Position to reposition or query playback.

Example

See examples/sfxlib/stream-open.bas, examples/sfxlib/stream-play.bas, examples/sfxlib/stream-seek.bas, and examples/sfxlib/showcase.bas.

Differences from QB

  • New to FreeBASIC.

See also