SNDOPENRAW: Difference between revisions
Jump to navigation
Jump to search
Code by Galleon
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "{{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...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
{{PageExamples}} | {{PageExamples}} | ||
''Example:'' Combining 2 sounds without worrying about mixing: | ''Example:'' Combining 2 sounds without worrying about mixing: | ||
{{CodeStart}} | {{CodeStart}} | ||
a = {{Cl|_SNDOPENRAW}} | a = {{Cl|_SNDOPENRAW}} | ||
b = {{Cl|_SNDOPENRAW}} | b = {{Cl|_SNDOPENRAW}} | ||
Line 24: | Line 24: | ||
{{Cl|_SNDCLOSE}} a | {{Cl|_SNDCLOSE}} a | ||
{{Cl|_SNDCLOSE}} b | {{Cl|_SNDCLOSE}} b | ||
{{CodeEnd}}{{ | {{CodeEnd}} | ||
{{Small|Code by Galleon}} | |||
Latest revision as of 22:50, 11 February 2023
The _SNDOPENRAW function opens a new channel to fill with _SNDRAW content to manage multiple dynamically generated sounds.
Syntax
- pipeHandle& = _SNDOPENRAW
Description
- 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.
Examples
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 |
See also