Page 1 of 1

About APU emulation

Posted: Sat Jan 04, 2014 11:27 pm
by Boolean
Hi, everyone.
I implemented graphics emulation using Win32 CreateBitmap and BitBlt functions successfully last year, though stupid.
Now, I intend to use Win32 waveOutXXX functions to implement sound.
I have learned about APU registers and am going to implement square1 & 2, but I don't know how to start it.
Help please :)

Re: About APU emulation

Posted: Sun Jan 05, 2014 8:01 am
by tepples
First, do you know how to generate a square wave? Try opening waveOut and filling the buffer with a hundred +4000 values, then a hundred -4000 values, then repeat.

Re: About APU emulation

Posted: Sat Jan 11, 2014 10:39 pm
by Boolean
tepples wrote:First, do you know how to generate a square wave? Try opening waveOut and filling the buffer with a hundred +4000 values, then a hundred -4000 values, then repeat.
Thank you.
I made it. :D