nesdev.com
http://forums.nesdev.com/

New PCM demo
http://forums.nesdev.com/viewtopic.php?f=2&t=4965
Page 1 of 5

Author:  frantik [ Tue Mar 17, 2009 7:00 am ]
Post subject:  New PCM demo

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 :)

Download demo

Author:  blargg [ Tue Mar 17, 2009 7:55 am ]
Post subject: 

Hahaha, excellent. Wins on both counts.

Author:  Celius [ Tue Mar 17, 2009 8:36 am ]
Post subject: 

Wow! Amazing quality!! And pretty humorous, too :) .

Author:  Dwedit [ Tue Mar 17, 2009 8:55 am ]
Post subject: 

When is the horizontally flipped image used?

Author:  frantik [ Tue Mar 17, 2009 9:21 am ]
Post subject: 

it's not used.. i just wanted to put something in the other pattern table for nosy folks lol ;)


glad u guys enjoyed it :D :D

Author:  Roth [ Tue Mar 17, 2009 11:31 am ]
Post subject: 

D'oh! You got me! haha Pretty nice demo : D

Author:  WedNESday [ Tue Mar 17, 2009 11:34 am ]
Post subject: 

Aw shame, I've just tested it out on WedNESday, but there's no sound emulation at the moment...

Author:  blargg [ Tue Mar 17, 2009 11:57 am ]
Post subject: 

No sound? Then you were half-spared :)

Author:  strat [ Tue Mar 17, 2009 12:25 pm ]
Post subject: 

Woah - I didn't know the NES could play anything other than bloop bloop bloop.

Author:  smkd [ Tue Mar 17, 2009 1:59 pm ]
Post subject: 

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.

Author:  koitsu [ Tue Mar 17, 2009 4:40 pm ]
Post subject: 

Haha, awesome. The audio quality is downright scary.

Author:  tepples [ Tue Mar 17, 2009 4:59 pm ]
Post subject: 

strat wrote:
I didn't know the NES could play anything other than bloop bloop bloop.

How many words can you make before the sun goes down?

Are. Eye. See. Kay. Rick.
Are. Oh. Ell. Ell. Roll.
Good job! Go again.

I wonder how much the quality would suffer under ADPCM.

Author:  Hamtaro126 [ Tue Mar 17, 2009 5:24 pm ]
Post subject: 

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.

Author:  frantik [ Tue Mar 17, 2009 6:17 pm ]
Post subject: 

tepples wrote:
I wonder how much the quality would suffer under ADPCM.


haha I actually got the idea from you musing about the same thing a year ago

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.

Author:  strat [ Tue Mar 17, 2009 7:20 pm ]
Post subject: 

"Haha, awesome. The audio quality is downright scary."

Honestly, that sounds at least as good as vinyl.

Thanks for the Big Bird vid, Tepples

Page 1 of 5 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/