About APU emulation

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
Boolean
Posts: 87
Joined: Thu Jan 02, 2014 7:58 am

About APU emulation

Post 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 :)
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: About APU emulation

Post 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.
Boolean
Posts: 87
Joined: Thu Jan 02, 2014 7:58 am

Re: About APU emulation

Post 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
Post Reply