XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Feb 20, 2017 3:19 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: How to convert .raw audio files?
PostPosted: Sun Feb 12, 2017 10:46 am 
Offline
n00b

Joined: Fri Jan 27, 2017 8:45 pm
Posts: 11
Has thanked: 2 times
Have thanks: 0 time

Hello, I just extracted music from the game Stronghold, but all music files have .raw file extension. Any ideas how to convert them into regular audio file formats?
Here is the example: http://rgho.st/6pfkHsf2j

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: How to convert .raw audio files?
PostPosted: Sun Feb 12, 2017 12:43 pm 
Offline
n00b

Joined: Fri Mar 25, 2016 8:26 am
Posts: 11
Has thanked: 0 time
Have thanks: 1 time
it's seems to be 16bit PCM, Stereo ,44KHz raw audio, any audio editor like Audacity can convert it to wav or other more convenient format


Top
 Profile  
 
 Post subject: Re: How to convert .raw audio files?
PostPosted: Sun Feb 12, 2017 2:14 pm 
Offline
n00b

Joined: Fri Jan 27, 2017 8:45 pm
Posts: 11
Has thanked: 2 times
Have thanks: 0 time
peter2005 wrote:
it's seems to be 16bit PCM, Stereo ,44KHz raw audio, any audio editor like Audacity can convert it to wav or other more convenient format

What is the best audio format for these files? .wav?
I am not sure if .mp3 cut some quality.


Top
 Profile  
 
 Post subject: Re: How to convert .raw audio files?
PostPosted: Sun Feb 12, 2017 6:10 pm 
Offline
n00b

Joined: Fri Mar 25, 2016 8:26 am
Posts: 11
Has thanked: 0 time
Have thanks: 1 time
If you want exact quality as in a game and don't mind file having 10mb just save it as wave, otherwise if the size matters and/or you want to listen to it from a mp3 stick, pick mp3.

use google for more info


Top
 Profile  
 
 Post subject: Re: How to convert .raw audio files?
PostPosted: Sun Feb 12, 2017 7:15 pm 
Offline
n00b

Joined: Fri Jan 27, 2017 8:45 pm
Posts: 11
Has thanked: 2 times
Have thanks: 0 time
I don'y dare to bother you more, you helped me enough...
But, if I import .raw files to Audacity with this settings: 16-bit PCM, Little-endian, 2 channels, 44100 Hz - the music plays like two time faster than expected, why is that?


Top
 Profile  
 
 Post subject: Re: How to convert .raw audio files?
PostPosted: Sun Feb 12, 2017 7:40 pm 
Offline
n00b

Joined: Fri Mar 25, 2016 8:26 am
Posts: 11
Has thanked: 0 time
Have thanks: 1 time
oux wrote:
I don'y dare to bother you more, you helped me enough...
But, if I import .raw files to Audacity with this settings: 16-bit PCM, Little-endian, 2 channels, 44100 Hz - the music plays like two time faster than expected, why is that?


I do not know how original sounds, try to change sample rate to 22050, but to me it sounds too slow..but who knows


Top
 Profile  
 
 Post subject: Re: How to convert .raw audio files?
PostPosted: Sun Feb 12, 2017 8:22 pm 
Offline
n00b

Joined: Fri Jan 27, 2017 8:45 pm
Posts: 11
Has thanked: 2 times
Have thanks: 0 time
peter2005 wrote:
oux wrote:
I don'y dare to bother you more, you helped me enough...
But, if I import .raw files to Audacity with this settings: 16-bit PCM, Little-endian, 2 channels, 44100 Hz - the music plays like two time faster than expected, why is that?


I do not know how original sounds, try to change sample rate to 22050, but to me it sounds too slow..but who knows

Thank you, it works...
But, how to determine the true frequency of the music? 22050 sounds good, but I am not sure if it is true frequency of this music.


Top
 Profile  
 
 Post subject: Re: How to convert .raw audio files?
PostPosted: Sun Feb 12, 2017 8:54 pm 
Offline
n00b

Joined: Fri Mar 25, 2016 8:26 am
Posts: 11
Has thanked: 0 time
Have thanks: 1 time
oux wrote:
peter2005 wrote:
oux wrote:
I don'y dare to bother you more, you helped me enough...
But, if I import .raw files to Audacity with this settings: 16-bit PCM, Little-endian, 2 channels, 44100 Hz - the music plays like two time faster than expected, why is that?


I do not know how original sounds, try to change sample rate to 22050, but to me it sounds too slow..but who knows

Thank you, it works...
But, how to determine the true frequency of the music? 22050 sounds good, but I am not sure if it is true frequency of this music.


Problem is that the .raw file is headerless wav file .i.e there are no information how it should be played. Both 44100 and 22050 are standard most likely used bitrates(you can try also 32000).

You would have to reverse engineer the game to determine the true frequency for sure, or try to find already extracted tracks from the game somewhere on the internet.


Top
 Profile  
 
 Post subject: Re: How to convert .raw audio files?
PostPosted: Tue Feb 14, 2017 4:19 pm 
Offline
ultra-n00b

Joined: Tue Feb 14, 2017 4:06 pm
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
keep in mind source files might not be stereo, so importing it to stereo tracks would make it play twice as fast but the same or similar pitches to the ones you hear in game. if it sounds off in both speed and pitch, you have the wrong sample rate.

commonly used ones include:
48000hz 44100hz 41000hz 36000hz 32000hz 28000hz 22050hz 18000hz 16000hz 11025hz 8000hz 6000hz.

though I have encountered files at strange rates like 40095hz adpcm in a file in rage, or 14000hz in turok 2 on n64.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group