Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We need some kind of _NEWSND function to make sound buffers #228

Open
a740g opened this issue Apr 21, 2022 · 0 comments
Open

We need some kind of _NEWSND function to make sound buffers #228

a740g opened this issue Apr 21, 2022 · 0 comments

Comments

@a740g
Copy link

a740g commented Apr 21, 2022

I noticed that we have a _NEWIMAGE that lets us do the same for images, but nothing for sound. I am aware of _SNDRAW & _SNDOPENRAW, but that does not serve my purpose. What I really want is a sound buffer that can be created programmatically and filled with custom sample data to be reused later multiple times. Something like:

soundHandle& = _NEWSND(sampleRate&, sampleBits&, sampleChannels&)

We can then get access to the buffer by using _MEMSOUND[(soundHandle&, channel%)].

If there is a way to do this currently in QB64 (without using external libs or hacks) then please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant