Converting WAV to MSU problems

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
User avatar
getafixx
Posts: 373
Joined: Tue Dec 04, 2012 3:28 pm
Location: Canada

Converting WAV to MSU problems

Post 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?
User avatar
juef
Posts: 67
Joined: Thu Jul 15, 2010 8:20 am
Location: Québec, Canada

Re: Converting WAV to MSU problems

Post 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.
User avatar
getafixx
Posts: 373
Joined: Tue Dec 04, 2012 3:28 pm
Location: Canada

Re: Converting WAV to MSU problems

Post by getafixx »

Great! That's exactly what I was looking for.

Thanks! :D
Post Reply