#25665 - Mephisto - Thu Aug 26, 2004 7:39 pm
i tried to convert a 8 bits .wav at 22khz and PCM format, it displays this msg :
WAV_Loadsound( aas_data/X.wav ): Failed: missing data subchunk...
what's wrong and how can i repair it ? plz
#25669 - jd - Thu Aug 26, 2004 8:50 pm
Mephisto wrote: |
i tried to convert a 8 bits .wav at 22khz and PCM format, it displays this msg :
WAV_Loadsound( aas_data/X.wav ): Failed: missing data subchunk...
what's wrong and how can i repair it ? plz |
AAS's WAV importer is very simplistic so the files have to be very specifically formatted for it to be able to process them. If you run the file through SoX with the following options then the file should work correctly (other programs should work as well, but SoX is what I've used in the past to do the job and it's free):
sox [source_filename] -s -b -c 1 [destination_filename]
You'll get a warning about .wav files not supporting 8-bit signed format - don't worry about that. (The command above also works if you want to convert to .raw format.) You can get SoX here:
http://sox.sourceforge.net/
#25670 - Mephisto - Thu Aug 26, 2004 9:02 pm
thx for the copy and paste but it doesn't work, got a new error msg :
Zero length data subchunk ...
#25671 - jd - Thu Aug 26, 2004 9:12 pm
Mephisto wrote: |
thx for the copy and paste |
I did consider linking to the original post but in the end I decided a copy and paste was easier. :)
Mephisto wrote: |
but it doesn't work, got a new error msg :
Zero length data subchunk ... |
Would it be possible to email me X.wav?
By the way, are you sure you ran the file through SoX correctly? The previous poster reported the same thing, but when I converted his file myself it worked fine - i.e. have you tried..
sox X.wav -s -b -c 1 X2.wav
..then deleting X.wav and then renaming X2.wav to X.wav?
#25673 - Mephisto - Thu Aug 26, 2004 9:36 pm
works thx uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu