News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

can the default MASM package make use of Dsound?

Started by supercoollee, September 24, 2011, 03:20:08 PM

Previous topic - Next topic

supercoollee

thanks for your example. your example works, but mine still not working.

after puting some pre definitions from your dsound9 include files into my asm file,
i guess the only major difference between your code and my code is the COINVOKE command. i wonder what it does.
and in uFmod, the sound is played in a seperate thread. i wonder whether i have to create a thread for playing the sound.

PS: my asm file can be assembled correctly, anything is working except that i don't hear the sound when i use the play function.
the data in memory seem (viewed with a debugger) to be correctly loaded.

jj2007


Siekmanski

Yes, a thread is very usefull look at this example.
This one plays a streaming buffer with a position notification thread and a static buffer at once.

http://members.home.nl/siekmanski/DSound_Streaming.zip