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
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
* You can manage multiple dynamically generated sounds at once without having to worry about mixing. | * 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. | * Use [[_SNDCLOSE]] to remove the pipe sound handles from memory. | ||
{{PageAvailability}} | |||
<!-- QB64 = a version or none, QBPE = a version or all, Platforms = yes or no --> | |||
<gallery widths="48px" heights="48px" mode="nolines"> | |||
File:Qb64.png|'''v0.960''' | |||
File:Qbpe.png|'''all''' | |||
File:Apix.png | |||
File:Win.png|'''yes''' | |||
File:Lnx.png|'''yes''' | |||
File:Osx.png|'''yes''' | |||
</gallery> | |||
<!-- additional availability notes go below here --> | |||
Latest revision as of 13:27, 8 December 2024
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.
Availability
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