Sonic and Sega Retro Message Board: Sonic 3 Samples - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked
    Locked Forum

Sonic 3 Samples

#1 User is offline Stealth 

Posted 14 September 2006 - 09:13 PM

  • Posts: 578
  • Joined: 31-July 05
  • Gender:Male
  • Project:Sonic Mania, HCGE, Sonic Megamix, SonED2, [...]
  • Wiki edits:19
Tweaker and I had talked about these three strange areas of Sonic 3 that started with the same set of data before, and I finally decided to have a look at them. It turns out that all three of them are DAC banks. Because the full sample set was too large to fit into a single bank, they were spanned across three ($E0000 [$81-$9A], $E8000 [$9B-$AA], $F0000 [$AB-$C0]), with the full pointer list and setup table repeated at the beginning of each one (presumeably to avoid performing an extra subtract). For each bank, though, the setup table entries corresponding with data that is stored in ANOTHER bank don't have completely accurate settings (the size setting is 0, for one).

I went through each bank and found the start and end location of each sample and extracted them:
Raw
Decompressed
Wav Files

The raw set are the data exactly as it's stored in-game. The decompressed set were decompressed using jman's "Sonic 1" sample decompressor, and the wav file versions are the decompressed data with a wav header attatched so they can be played back with a wav file player. I get the impression that their "native" playback rate is 11khz, as opposed to the 16khz rate used by some other games, so the wav files were loaded and saved as 8bit 11khz mono. In-game, they're controlled by a playback rate modifier (the first byte in each setup entry), which is why some of them will end up sounding slightly different, and why some files are labeled as more than one sample ID (the same sample played at a different rate)

Sonic & Knuckles contains the first bank with the same data, except that sample $9B was added on. It's songs don't use any of the other samples, though, and so they weren't included, and are read from their positions in the Sonic 3 ROM when they're needed by S3&K

You'll also notice that there's a sample labeled "X" rather than with an ID. That sample is in the last bank, and does NOT have pointer and setup entries (it is unreferenced and unused). It's simply stuck between two of the other samples that ARE used. As for the rest.. how many can you recognize?

#2 User is offline Vangar 

Posted 15 September 2006 - 08:46 AM

  • Posts: 3408
  • Joined: 08-January 04
  • Gender:Male
  • Location:Australia
  • Wiki edits:2
"COME ON!"

Ha! I knew it said Come on! Some people said otherwise, but this new information proves it.

Nice work again Stealth!

#3 User is offline Varion Icaria 

Posted 15 September 2006 - 10:45 AM

  • He's waiting....
  • Posts: 1004
  • Joined: 26-August 03
  • Gender:Male
  • Project:S4: Cybernetic Outbreak
  • Wiki edits:1
This saves me a lot of searching, Great job you both!

#4 User is offline ICEknight 

Posted 15 September 2006 - 11:20 AM

  • Posts: 10071
  • Joined: 11-January 03
  • Gender:Male
  • Location:Spain
  • Wiki edits:18
Hmm, that "X" sample might have been used in one of MJ's tracks. Very interesting.

Thanks for sharing!

#5 User is offline Varion Icaria 

Posted 15 September 2006 - 01:44 PM

  • He's waiting....
  • Posts: 1004
  • Joined: 26-August 03
  • Gender:Male
  • Project:S4: Cybernetic Outbreak
  • Wiki edits:1
Quick Question, Where's Jman's S1 Sample Decompressor?

Edit: and does it compress aswell?
This post has been edited by R. Solaris: 15 September 2006 - 01:48 PM

#6 User is offline Metal Man88 

Posted 15 September 2006 - 02:09 PM

  • Time Traveller
  • Posts: 2138
  • Joined: 06-March 06
  • Gender:Male
  • Wiki edits:46
Whoo. Now what I'd want to hear would be the original songs using these instead of their compressed versions. Quite interesting.

#7 User is offline drx 

Posted 16 September 2006 - 06:40 AM

  • <Shade> fuck MJ
  • Posts: 2156
  • Joined: 02-March 04
  • Gender:Male
  • Project::rolleyes:
  • Wiki edits:8
Nice, good job, thanks.

#8 User is offline jman2050 

Posted 16 September 2006 - 12:36 PM

  • Teh Sonik Haker
  • Posts: 625
  • Joined: 10-December 05
  • Wiki edits:4

R. Solaris, on Sep 15 2006, 10:44 AM, said:

Quick Question, Where's Jman's S1 Sample Decompressor?

Edit: and does it compress aswell?

yes it does. From an earlier thread. I'll release the source code too if anyone is interested.

Quote

http://www.cgi101.co...0/s1sndcomp.exe

Decompressor/Compressor for the S1 sample format. arguments are:

(-d/-c) <input file> <num of bytes> <output file>

-d to decompress, -c to compress. Num of bytes refers to the number in the INPUT file. Also note that the num of bytes is IN DECIMAL NOT HEX BECAUSE I WAS TOO LAZY TO DO IT IN HEX. That is all


#9 User is offline FuzzballFox 

Posted 16 September 2006 - 12:41 PM

  • Hmmmmm
  • Posts: 575
  • Joined: 24-October 05
  • Location:UK - Hampshire
  • Project:Nothing anymore
Many are not used right? We know about the connection between MJ and S3, is this is what's left of the original tracks written by MJ himself perhaps?

#10 User is offline blueblur87 

Posted 24 August 2011 - 11:09 AM

  • Posts: 151
  • Joined: 13-April 09
  • Gender:Male
  • Location:West Midlands, United Kingdom
  • Wiki edits:1
Hi, great job getting the samples! The download link doesn't work though, and I want to use the samples for some compositions. Thanks!

#11 User is offline nineko 

Posted 24 August 2011 - 01:24 PM

  • I am the Holy Cat
  • Posts: 5509
  • Joined: 17-August 06
  • Gender:Male
  • Location:italy
  • Project:I... don't even know anymore :U
  • Wiki edits:5,251
I mirrored them on my webspace on November 7th, 2009 :)

#12 User is offline blueblur87 

Posted 25 August 2011 - 09:12 AM

  • Posts: 151
  • Joined: 13-April 09
  • Gender:Male
  • Location:West Midlands, United Kingdom
  • Wiki edits:1
Thanks Nineko, that's great.

Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users