|
-
Aug 19th, 2012, 06:22 AM
#10
Re: [VB6] - audio(output sound)
Hmmm... not sure about speed. I was more referring to:
 Originally Posted by joaquim
ok... we can read wave files(for example) byte a byte and put it in a variable... but how we put it on columns(left... right) (for we ear a sound)?
(i'm not speak about directx)
You fill up a struct, containing arrays for left and right, (buffer) and pass it to the api. You will get a callback when the buffer can be filled again.
You can create any sound, like a sine etc, with some math and pass it to the soundcard. You don't need to write to a file first.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|