Page 1 of 1

Converting WAV to MSU problems

Posted: Tue Feb 11, 2014 2:03 pm
by getafixx
Hey guys, just got my SD2SNES the other day and I'm itching to try out different things with the MSU. I downloaded the wav2msu program, but I cannot get any wav file to convert to PCM. Every time I just get an error "Sound data not where it was expected". I Google'd the error, but I can't find anything helpful, just "The data chunk usually follows directly after the format info chunk, which in turn is usually the first chunk. Any sound editor that does not store these important bits in the expected place risks incompatibility with a lot of programs.". So it's apparently something to do with my wav files.

I have tried Audacity and some online convertor tools when converting my MP3s to wav, and tried multiple converted files to no avail. I have verified they are all 44.1Khz 16bit stereo wavs.

Is there anything I can try here? Is there a mp3-wav converter program that puts the wav file together properly so this wav2msu program works?

Re: Converting WAV to MSU problems

Posted: Tue Feb 11, 2014 4:54 pm
by juef
I gave a quick try using a MP3 decoded to wav by VLC and wav2msu seemed to convert it fine. If you're on Windows, install VLC Player, save the following as a .bat file and execute it in the same directory as your source file and you should be good:

Code: Select all

for /r %%i in (*.mp3) do "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy -vvv "%%i" --sout=#transcode{acodec=s16l,channels=2,ab=128,samplerate=44100}:standard{access=file,mux=wav,dst="%%~ni.wav"} vlc://quit
You may have to modify the path to the VLC executable if your installation directory is different, and change "mp3" by whatever file extension you have.

Re: Converting WAV to MSU problems

Posted: Tue Feb 11, 2014 7:24 pm
by getafixx
Great! That's exactly what I was looking for.

Thanks! :D