16-bit stereo 32 kHz streaming success

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
User avatar
pcmantinker
Posts: 108
Joined: Sun Jul 26, 2009 9:03 pm
Location: Columbus, GA
Contact:

Post by pcmantinker » Mon Mar 22, 2010 9:39 pm

It's truly amazing to hear such great quality music come from the SNES. Would it be possible to play a song longer than one minute? I realize the rom size would be significantly larger, but it could be done on the PowerPak provided it is less than 128Mbits. I realize 16MB is a lot of data for one song in particular, but it would be pretty cool to play a 3-5 minute song on the SNES. Maybe functionality for an MP3 player could be added to the PowerPak if blargg were able to colaborate with bunnyboy on the coding. A converter would need to be written for the PC to down sample songs so that they could be played back on the SNES. Just some thoughts.

Marvin
Posts: 9
Joined: Tue Mar 23, 2010 1:53 am

Post by Marvin » Tue Mar 23, 2010 1:57 am

Well decoding MP3 takes serious CPU resources that the SNES does not have. But it would be cool to have a utility to convert music to this ROM and use it on a PowerPak. Too bad it is limited by 128mbit. As far as I get it - it is not possible to use the CF card on the PowerPak directly (like a media player on a SNES) but everything that the SNES reads is first copied to the 128mbit RAM chip and then the SNES can read it. Maybe playtime can be optimized with a really simple lossless coding (should be less calculations than lossy)? Or maybe PowerPak developer has some nice tricks up his sleeve that could update the 128mbit RAM area while it is in use ... let's say it is split in half and when the first half is read the second is updated and the other way around? Well these are all fantastic ideas but ASM is way over my head to even start to think about this.

Oh and PowerPak has DSP-1, is it of any use for audio? :)

User avatar
blargg
Posts: 3715
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Post by blargg » Tue Mar 23, 2010 12:55 pm

I actually use 2:1 compression for this demo ROM, using an 8-bit mantissa and 3-bit exponent (shared among groups of 15*2 samples). I'm told someone else has written a 4:1 ADPCM decompressor, which might be more appropriate if length is more important than quality.

Apparently you can make 12MB SNES ROMs, or even higher with custom chips. The PowerPak could certainly allow some kind of banked or streamed access to the entire CF card, for even greater capacities. I'm not sure what use it is besides a tech demo though. :)

Marvin
Posts: 9
Joined: Tue Mar 23, 2010 1:53 am

Post by Marvin » Wed Mar 24, 2010 7:59 am

Well imagine ... playing for many hours and then without moving going to The Dark Side of the Moon 8)

Eyedunno
Posts: 35
Joined: Mon Dec 21, 2009 12:59 pm

Post by Eyedunno » Thu Mar 25, 2010 9:44 pm

blargg wrote:I'm not sure what use it is besides a tech demo though. :)
It's a pretty nifty tech demo though. I now have it as the lone ROM in the root of my PowerPak (the games are all in directories). :)

User avatar
blargg
Posts: 3715
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Post by blargg » Fri Mar 26, 2010 12:32 am

Sounds like I need to release a version that can play uncompressed PCM, and perhaps the compressor or something. Sort of an extended ringtones for the SNES. :)

Marvin
Posts: 9
Joined: Tue Mar 23, 2010 1:53 am

Post by Marvin » Fri Mar 26, 2010 1:05 am

That would be awesome! SoX http://sox.sourceforge.net/ could be used as a first step to downsample/change bit depth/format.

Eyedunno
Posts: 35
Joined: Mon Dec 21, 2009 12:59 pm

Post by Eyedunno » Fri Mar 26, 2010 3:34 pm

blargg wrote:Sounds like I need to release a version that can play uncompressed PCM, and perhaps the compressor or something. Sort of an extended ringtones for the SNES. :)
At the risk of redundancy, that would be awesome (and ADPCM support would be even better).

johannesmutlu
Posts: 26
Joined: Fri Mar 11, 2011 2:22 pm

justifiyng the snes sound revolution

Post by johannesmutlu » Fri Mar 11, 2011 3:12 pm

i ,m glad to know that the snes is capable of true 16bit stereo 32khz sound.
But sadly no game had ever made full use of it.
this proves for once and for all that the snes sound is better then the megadrive & gba,despites the gba cpu is 32bit (wich could even decompress mp3 files on the fly while running a game),but it's dac's are just 8bit.
I,ve played this 1 minute sound demo on the powerpak, so if we will ever find a way of exceeding the 128mb limit of the powerpak by using a cluster chain file system trough an os update. It may be possible to take full advantage of the cf flashcard space to play for instance a 10 minute audio recording on it.
Note; exeeding the 512 kb limit on the nes powerpak has been barely proven trough a cluster chain format rom and the required update to achief this.
It does this by updating the 512KB space once needed.
Last edited by johannesmutlu on Sun Sep 25, 2016 1:40 pm, edited 2 times in total.

tepples
Posts: 21841
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples » Fri Mar 11, 2011 3:50 pm

this proves for once and for all that the snes sound comes close to cd,it,s better then the gba
"Better" is subjective.

One might argue the GBA sound is "better" because the GBA has the CPU power to decompress recorded music in real time, at the same time as playing a game, using a more sophisticated codec than BRR. What does 30 kbps GSM sound like?

I'm pretty sure the CD add-on would have used the audio in pins.

User avatar
Zepper
Formerly Fx3
Posts: 3192
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Post by Zepper » Fri Mar 11, 2011 4:31 pm

tepples wrote:
this proves for once and for all that the snes sound comes close to cd,it,s better then the gba
"Better" is subjective.
- Surely it is.
Image

User avatar
TmEE
Posts: 729
Joined: Wed Feb 13, 2008 9:10 am
Location: Estonia, Rapla city (50 and 60Hz compatible :P)
Contact:

Post by TmEE » Sat Mar 12, 2011 2:16 am

Is interpolation bypassed when one uses the echo buffer to play samples ?

User avatar
Bregalad
Posts: 7793
Joined: Fri Nov 12, 2004 2:49 pm
Location: Chexbres, VD, Switzerland

Post by Bregalad » Sat Mar 12, 2011 3:31 am

Yes of course.
Life is complex: it has both real and imaginary components.

User avatar
TmEE
Posts: 729
Joined: Wed Feb 13, 2008 9:10 am
Location: Estonia, Rapla city (50 and 60Hz compatible :P)
Contact:

Post by TmEE » Sat Mar 12, 2011 4:58 am

In that case : awesome :)

KungFuFurby
Posts: 260
Joined: Wed Jul 09, 2008 8:46 pm

Post by KungFuFurby » Sun Mar 13, 2011 6:23 am

Your demo is unique in that not a single channel is apparantley used... on SNES9X, muting the channel does nothing to the sound.

Post Reply