I'm writing a console emulator using the _excellent_ assembler SpAsm, and I'm trying not to use DirectX. I used CreateDIBSection and StretchBlt for the graphics, which works perfectly except that it's not very fast. However, I'm looking for a way to do something similar with the sound - create a sound buffer, write to it and then play it - without using DirectSound. Is there such a way?
/Thankful for any help.
Posted on 2003-06-26 08:55:51 by Hugin
If you have a syntax question (or help) or help translated, post to the spasm forum. I will convert it as quickly as possible.

SpAsm Forum

Good Luck Hugin

Posted on 2003-06-26 09:32:22 by RobotBob
Read the windows multimedia sdk o get sdl http://www.libsdl.org
Posted on 2003-06-26 09:59:10 by greenant
Use waveOut*() API.
Posted on 2003-06-26 13:29:13 by comrade
Check out this tutorial on gamedev which describes playing soundbuffers ( both waveout and dx ) it is good.
Posted on 2003-06-26 17:36:03 by david
waveOutWrite and the others are what u are looking for like comrade had already said. I personally hevent used them, but I prefer to use DS, since it has lower latency.
Posted on 2003-06-26 20:27:06 by x86asm