QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The _SNDOPENRAW function opens a new channel to fill with _SNDRAW content to manage multiple dynamically generated sounds.

Syntax

pipeHandle& = _SNDOPENRAW

Description

Example(s)

Combining 2 sounds without worrying about mixing:


a = _SNDOPENRAW
b = _SNDOPENRAW

FOR x = 1 TO 100000
    _SNDRAW SIN(x / 10), , a 'fill with a tone
    _SNDRAW RND * 1 - 0.5, , b 'fill with static
NEXT

_SNDCLOSE a
_SNDCLOSE b 

See Also