The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: edkedk on July 31, 2006, 06:04:36 PM

Title: DirectSound programming with masm
Post by: edkedk on July 31, 2006, 06:04:36 PM
Hi all,

Anybody have a good small and clear example source of how to program DirectSound ?
I need the basics to get some noise out of the speakers with samples I define myself.
In the old days, I had covox and I could send a byte out to the d/a converter based on a timer interrupt. Works great.
But now I am developing a commodore 64 emulator, but getting very annoyed because I do not quite understand the DirectSound API together with masm.
I have masm v9.
I need help to get a self-made sample of for ex. 4096 bytes in a small buffer to be played in a loop, whereas I can update the 4096 bytes in this buffer with new data which should be played after the buffer finished.

Can somebody please help, I can not find any good masm source examples about this.

Thank you folks in advance !
bye
Title: Re: DirectSound programming with masm
Post by: gabor on August 01, 2006, 07:19:39 AM
Hello Erik!

It seems that we meet again!  :bg

I too looked into DSound programing, my impression was it is not really hard.
But why do the job others already have done? Here is a link to a thread on the forum:
http://www.masm32.com/board/index.php?topic=3196.0
This is a sound library made by Ultrano. I haven't tested it yet though...

Here is another link:
http://www.masm32.com/board/index.php?topic=2103.0
This is my attempt to create a simple sound player. It has bugs, but I guess the error has nothing to do with DSound. (Some other resoure allocation trouble...)

Greets, Gábor