Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems. See the NESdev wiki for more information.
Here's a little demo using $4011 to play raw 7bit PCM data while simultaneously doing some graphics stuff and reading from the controller. This is my first demo so let me know what you think
cool demo. i thought about 4011 streaming with other tasks crammed in between a little while back, you get a decent chunk of time with 8khz or 16khz between 4011 writes. i thought about using irq to time between 4011 but then i remembered ppu address lines aren't active in nmi so that wouldn't work out too well.
eventually i'd like to write a pcm streamer but i'd also want it doing something in the background otherwise it's pretty unremarkable. i co-authored something similar for the snes, was pretty fun to make.
Can Frantik release source code for the NES Demo? And can SMKDan do the same with the SNES Demo? Because the Sound/Music is nice and I'd like them to be released.
It would be interesting to hear using ADPCM compression.. but would you have enough time to decompress it and play the audio in addition to doing everything else? The audio is playing back around 14.5 kHz and there are only 16 clock cycles left between each sample.
one cool thing I discovered is you can get away with using more clock cycles if you only do it once in a while.. like you can do a fair amount of work during vblank and the distortion isn't noticeable until you've wasted a lot of clock cycles.