MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

MoonTurtle
MAME Fan
Reged: 04/16/19
Posts: 3
Send PM
Problems with ripping digitized samples from arcade games
11/12/19 09:01 PM Attachment: Splatterhouse-SFX.zip 402 KB (5 downloads)


Hello!
Prepare for a bit of a long read, PLEASE read the full thing before replying.

I recently played some of my favorite arcade games and took a liking to some of the sound effects from these games, so I went on the internet and searched for ways to get the sounds from the arcade (emulated in MAME, of course)

One way is an old program called "m1", it's a command prompt application originally released in 2008, claimed as a "Multi-Platform Arcade music/Sound eEmulator" and It does live up to that claim, as it can play most arcade music pretty flawlessly, (I only really use MAME for arcade emulation)
and any digitized sounds play ...mostly flawlessly.

For example I tried using M1 to rip the digitized samples from NinjaWarriors (1987, Taito) and was rather successful! the samples were crisp and clear, but when I tried doing the same for Final Fight and Haunted Castle(1987, Konami) I ran into an issue where the digitized sound samples would play, but the music track that played before would not stop, it would keep playing even as the sound effect played, making it near-impossible to rip the sound.

I soon got sick of the issue and looked for an alternative way to rip digitized sound samples, and eventually I came across another involving the use of Audacity,

FIRST, open up Audacity (if you have it)
then open up an arcade's parent rom, and look for any BIN files, COPY these files and put them in a new or empty folder (name the folder "[insert arcade game title here]-SFX.zip" then PASTE the copied BIN Files into the folder.

NEXT, in Audacity, go into File->Import->Raw Data,click Raw Data, then when the file selection window pops up, go to the folder you created with the copied files in it, and select whichever file you want to import, click OK, then a window will pop up allowing you to change the encoding, the byte order, how many sound channels you want, (go with Mono) and the sample rate.

I followed these steps in order, using Splatterhouse(1988, Namco) when I got to the final step, I decided that because the game came out in 1988, the digitized sound samples would be around 11025 Hz, (digitized voices, sounds and music at the time were much lower in terms of quality because of the low bitrate and/or due to the abilities of the sound hardware of the time, the highest bitrate that digitized voices/SFX/music in video games of the 80s-early 90s was probably around 22050 Hz, but that's just a wild guess)

I selected 11025 Hz and hit "OK"...but when I hit space to play the sound, the sound effects' pitch was way too high, I tried again, imported the same BIN file, but this time I selected 8000 Hz, still too high, 7000, still too high, then I tried 6000 Hz, and the digitized voices and sound effects seem to have the right pitch, but the problem is that the sound in general is not only really muffled, but also a bit scratchy and crackly in some places,

And the weird thing is is that the sound effects don't that problem in the actual game, they sound much clearer and the scratchiness is severely minimal,if it's even there.

I can only assume that the crackling heard in the raw data imports in Audacity is most likely the game's actual code stored in the BIN file, at least that's what I THINK it is, it might be something entirely different.

I've never been able to fix the issue, so if somebody knows how to fix the issue, Please let me know, I'd really appreciate it, I am trying to make them sound exactly the way they do in-game (play it in MAME or just watch a video of Splatterhouse arcade)

In case you're wondering what I have set for when I import the raw sound data into Audacity, here's what I have set up specifically for SplatterHouse Arcade:

(Keep in mind that the result of these settings will be the heavily muffled and scratchy quality I mentioned eariler)

ENCODING-[Unsigned 8-bit PCM]

BYTE ORDER-[Little-endian]

CHANNELS-[1 Channel (Mono)]
---------------------------
START OFFSET-[0] bytes

AMOUNT TO IMPORT-[100]%

SAMPLE RATE-[6000] Hz

Also, I've included a zip file containing 4 BIN files these files have all the digitized voices and sound effects from the Splatterhouse arcade game, these were taken directly from the parent ROM of the game, import any one of them into Audacity.

If you already have Splatterhouse for MAME, open up splatter.zip(parent rom) and look for these four BIN files:

sh_voi-0.bin
sh_voi-1.bin
sh_voi-2.bin
sh_voi-3.bin

Copy these files, pt them in a empty folder, them follow the steps I listed before

I will also upload a zip file containing M1, or "Multi-Platform Arcade Music/SFX Emulator" this forum will only allow me to upload one file at a time.







Entire thread
Subject Posted by Posted on
* Problems with ripping digitized samples from arcade games MoonTurtle 11/12/19 09:01 PM
. * Re: Problems with ripping digitized samples from arcade games MooglyGuy  11/13/19 07:39 PM
. * Re: Problems with ripping digitized samples from arcade games MoonTurtle  11/15/19 12:17 AM
. * Re: Problems with ripping digitized samples from arcade games MooglyGuy  11/15/19 10:50 AM
. * Re: Problems with ripping digitized samples from arcade games MoonTurtle  11/26/19 06:06 PM
. * Re: Problems with ripping digitized samples from arcade games MooglyGuy  11/27/19 01:38 AM
. * Re: Problems with ripping digitized samples from arcade games Vas Crabb  11/28/19 10:25 AM
. * Re: Problems with ripping digitized samples from arcade games hydef  11/16/19 07:00 PM
. * Re: Problems with ripping digitized samples from arcade games hydef  11/12/19 09:39 PM
. * Re: Problems with ripping digitized samples from arcade games Heihachi_73  08/09/20 03:50 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 4 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1909