Hmmm... not sure about speed. I was more referring to:
Quote Originally Posted by joaquim View Post
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.