21 May '13 - 18:46 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Extracting music from a SND file  (Read 2493 times)
Jeffmakesgames
Posts: 14


« on: 23 Mar '11 - 18:08 »
Reply with quoteQuote

Greetings!  I been playing a game called Rocket Knight and been enjoying its music.  I been poking around its files and notice the music is stored in various SND files, except I have no idea what formatting it even is.  I assume it's FMOD, but opening it in wordpad to see its format, I see this:

"AFX_MusicW1S1"

What is AFX?  Is this an encrypted FMOD file?  Upon looking further, I notice it references a FSB and WAV file.  I assume this AFX might be a type of archive?
« Last Edit: 23 Mar '11 - 18:10 by Jeffmakesgames » Logged
Rich Nagel
Posts: 292


« Reply #1 on: 23 Mar '11 - 19:26 »
Reply with quoteQuote

FYI, I found this on YouTube -> http://www.youtube.com/watch?v=YlsG7493GaA , which has links to these two files -> http://www.flameupload.com/files/0IUOJ5L1/_Game__Rocket_Knight__MP3_.rar and http://www.flameupload.com/files/IGFXAMHD/_Game__Rocket_Knight__OGG_.rar .
Logged
saga
Posts: 1365


« Reply #2 on: 23 Mar '11 - 21:14 »
Reply with quoteQuote

SND is such a generic file extension that it could be anything, plus the string you have posted pretty much looks like it's a proprietary format that is only used in this game and probably other games by the same manufacturer.
Logged
Jeffmakesgames
Posts: 14


« Reply #3 on: 23 Mar '11 - 22:08 »
Reply with quoteQuote

Well, if you want, I can temporarily post the file that I am trying to peek into.  I just don't know what this file really is.  I assume it has something to do with FMOD since I see a fmodex.dll and fmod_event.dll.


I do know the music is on Youtube, but the quality... is meh, which is why I want to rip the music myself.
« Last Edit: 23 Mar '11 - 22:10 by Jeffmakesgames » Logged
Jeffmakesgames
Posts: 14


« Reply #4 on: 2 Apr '11 - 12:39 »
Reply with quoteQuote

(Apologies for a double post)

I decided to upload the music file to my site in hopes that someone could tell me, what this SND format really is and how it can be viewed properly?

http://www.jeffmakesgames.com/misc/W1S1Music.snd (Approx. 16mb)

I made an attempt to view the file above in WavePad Sound Editor, and upon dragging it over it, a little thing pops up about Codec Settings, asking me to choose a format with the following options and the results I got when I chose them.
--------------------------------------------------
Dialogic ADPCM: Complete static
G711uLaw: Complete static
G711aLaw: Complete static
16 bit PCM (Intel Endian): Complete static
8 bit unsigned: Complete static
8 bit signed: Complete static

16 bit PCM: (Big Endian): Music... but it was incredibly fast and high pitched than the normal music in game.

32 bit float (Intel Endian): Complete static
32 bit float (Big Endian): Complete static
--------------------------------------------------

The thing I notice is that not all of the other snd files behave the same way.  Some don't even work with any of the options above.  I don't suppose these snd files could actually be encrypted in some way?  Upon looking in the Rocket Knight folder, I see two dll files named fmod_event.dll and fmodex.dll.  These would be related to the audio, correct?
« Last Edit: 2 Apr '11 - 12:42 by Jeffmakesgames » Logged
Dotpitch
Posts: 2472


« Reply #5 on: 2 Apr '11 - 14:35 »
Reply with quoteQuote

The files you uploaded indeed looks like an FMOD file (with .fev, .fsb, _bank00 and .wav identifiers).
16 bit PCM: (Big Endian): Music... but it was incredibly fast and high pitched than the normal music in game.
You've probably got the sample rate wrong, what if you try 32 kHz a lower one?

The thing I notice is that not all of the other snd files behave the same way.  Some don't even work with any of the options above.  I don't suppose these snd files could actually be encrypted in some way?  Upon looking in the Rocket Knight folder, I see two dll files named fmod_event.dll and fmodex.dll.  These would be related to the audio, correct?
Nah, it's not encrypted...
Quote from: wikipedia.org/FMOD
Formats
FMOD Ex supports the following audio formats: AIFF, ASF, ASX, DLS, FLAC, FSB (FMOD's sample bank format), IT, M3U, MIDI, MOD, MP2, MP3, Ogg Vorbis, PLS, S3M, VAG (PS2/PSP format), WAV, WAX (Windows Media Audio Redirector), WMA, XM, XMA (only on the Xbox 360), as well as raw audio data.
In this case you found a file that contains WAV data, by forcing your soundeditor to specific settings you can get the music out of there. The headers still sound garbled, obviously. The other files may very well be different, for example in MP3 or MOD/IT/XM format. To get all the music out properly, you'll have to run it through a real FMOD engine, either in-game or standalone (if somebody made that). Or you can just download it from the links Rich found, which is a lot less work Smiley.
« Last Edit: 2 Apr '11 - 14:38 by Dotpitch » Logged
Jeffmakesgames
Posts: 14


« Reply #6 on: 2 Apr '11 - 21:42 »
Reply with quoteQuote

The sample rate was at 44100hz... I guess I can try lowering it.  I prefer to rip it from the main files for good reasons. Smiley  I'll see if my sound editor can identify it further.

Alright, I tried 32000hz and it sounds exactly like the game.  Sweet!  However, these other files... I can't seem to get working as no matter which I choose, it's just static. (AGH)



Is there a specific program I can open these snd files with?
« Last Edit: 2 Apr '11 - 21:49 by Jeffmakesgames » Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines