From QB64 Wiki

Jump to: navigation, search

_SNDOPENRAW function opens a new channel to shove _SNDRAW content into to manage multiple dynamically generated sounds.


pipehandle = _SNDOPENRAW

  • You can manage multiple dynamically generated sounds at once without having to worry about mixing.
  • Use _SNDCLOSE to remove the pipe sound handles from memory.

Example: 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

Code by Galleon

See also:

Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in
  • What links here
  • Related changes
  • Special pages
  • Printable version