How to extract the sound files from the roms?

PM development, programming, hacking and all that fun stuff.
Post Reply
User avatar
FerozElMejor
Posts: 5
Joined: March 11th, 2019, 16:21

How to extract the sound files from the roms?

Post by FerozElMejor » March 11th, 2019, 16:27

Hello everyone, I'm lookng for a tool to extract all the music files of the 10 roms from Pokémon Mini.

I would love any help for doing that :D

Toolshrink
Posts: 43
Joined: November 4th, 2017, 07:39

Re: How to extract the sound files from the roms?

Post by Toolshrink » March 12th, 2019, 12:03

If you have any luck, is it possible for you to share the files on the site? Thanks! ;)

User avatar
FerozElMejor
Posts: 5
Joined: March 11th, 2019, 16:21

Re: How to extract the sound files from the roms?

Post by FerozElMejor » March 12th, 2019, 13:16

Toolshrink wrote:If you have any luck, is it possible for you to share the files on the site? Thanks! ;)
Of course, but it seems that no one knows how to get these files, I would love to get they, and then share all the music on youtube and here.

zoranc
Posts: 293
Joined: August 13th, 2010, 18:13
Contact:

Re: How to extract the sound files from the roms?

Post by zoranc » March 15th, 2019, 18:24

FerozElMejor wrote:
Toolshrink wrote:If you have any luck, is it possible for you to share the files on the site? Thanks! ;)
Of course, but it seems that no one knows how to get these files, I would love to get they, and then share all the music on youtube and here.
Without access to the source code it would be difficult by just looking at the binary data...

One way is to run the games via emulator and record all the accesses to the sound registers and timers. That'd produce kind of sound file... You would need to modify the PokeMini for that.

User avatar
YasaSheep
Posts: 191
Joined: November 20th, 2005, 04:04
Location: Portland (Also the discord)
Contact:

Re: How to extract the sound files from the roms?

Post by YasaSheep » May 30th, 2019, 06:15

Honestly it probably wouldn't be terrible to reverse engineer. There's only one way to write sound (movs/lds to the appropriate registers right?? https://www.pokemon-mini.net/documentation/audio/), so search for those ops in the debugger and put breaks on them, then step back to figure out where the data's coming from and how it's finding the start and end of that data. Hopefully an array of offsets somewhere, but if not you'd just need to go to each BGM until you find the pattern.

Jhynjhiruu
Posts: 1
Joined: April 11th, 2019, 01:57

Re: How to extract the sound files from the roms?

Post by Jhynjhiruu » June 1st, 2019, 18:09

I would imagine that all of Nintendo's games use the same code for audio, given that they had some kind of development library; the (small amount of) work I've done reversing Pokémon Tetris from a disassembly has led to some insight on how audio is loaded, but as for extracting it I just read the values out from an emulator into my own ROM.

Post Reply