2022-07-31 21:57:56 +00:00
|
|
|
{{QBDLDATE:07-31-2022}}
|
|
|
|
{{QBDLTIME:23:40:18}}
|
2022-05-20 22:18:31 +00:00
|
|
|
{{DISPLAYTITLE:_SNDOPENRAW}}
|
|
|
|
The [[_SNDOPENRAW]] function opens a new channel to fill with _SNDRAW content to manage multiple dynamically generated sounds.
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
|
|
|
: {{Parameter|pipeHandle&}} = [[_SNDOPENRAW]]
|
|
|
|
|
|
|
|
|
|
|
|
{{PageDescription}}
|
|
|
|
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
{{PageExamples}}
|
|
|
|
''Example:'' Combining 2 sounds without worrying about mixing:
|
|
|
|
{{CodeStart}}
|
|
|
|
a = {{Cl|_SNDOPENRAW}}
|
|
|
|
b = {{Cl|_SNDOPENRAW}}
|
|
|
|
|
|
|
|
{{Cl|FOR...NEXT|FOR}} x = 1 {{Cl|TO}} 100000
|
|
|
|
{{Cl|_SNDRAW}} {{Cl|SIN}}(x / 10), , a 'fill with a tone
|
|
|
|
{{Cl|_SNDRAW}} {{Cl|RND}} * 1 - 0.5, , b 'fill with static
|
|
|
|
{{Cl|NEXT}}
|
|
|
|
|
|
|
|
{{Cl|_SNDCLOSE}} a
|
|
|
|
{{Cl|_SNDCLOSE}} b
|
|
|
|
{{CodeEnd}}{{small|Code by Galleon}}
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
|
|
* [[_SNDRAWDONE]]
|
|
|
|
* [[_SNDRAW]]
|
|
|
|
* [[_SNDCLOSE]]
|
|
|
|
|
|
|
|
|
|
|
|
{{PageNavigation}}
|
|
|
|
|
2022-07-31 21:57:56 +00:00
|
|
|
[[Category:Latest]]
|