• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

Problems with writing a BRSTM creation script for Linux

maybeway36

Smash Rookie
Joined
Jul 20, 2008
Messages
7
I'm trying to write a script that will automatically convert VGM files to BRSTMs with perfect looping. It runs on Linux but uses Wine for Winamp (conversion) and tools like revb.exe and dspadpcm.exe.
Everything works fine up until I actually test the file. After it plays for a little while it just turns to static for about 30 seconds.
If anyone could tell me what the problem might be, it would be great. I'm certain there's no clipping.

Here's the part of the script where the brstm gets made:

Code:
mkdir -p tmp
wine tools/revb.exe --extract tools/C12.brstm tmp/C12L.dsp tmp/C12R.dsp
wine tools/dspadpcm.exe -d tmp/C12L.dsp tmp/l.wav -ctmp/l.txt
wine tools/dspadpcm.exe -d tmp/C12R.dsp tmp/r.wav -ctmp/r.txt
tools/audio_combine/audio_split /tmp/output.wav l.wav r.wav
rm /tmp/output.wav
mv l.wav tmp/
mv r.wav tmp/
wine tools/dspadpcm.exe -e tmp/l.wav tmp/l.DSP -l$NEWSTART-$NEWEND -ctmp/newC12L.txt
wine tools/dspadpcm.exe -e tmp/r.wav tmp/r.DSP -l$NEWSTART-$NEWEND -ctmp/newC12R.txt
echo "---"
wine tools/revb.exe --build "$(echo $1|sed -e 's/.vg.//g').brstm" tmp/l.DSP tmp/r.DSP
rm -r tmp
Things like $NEWSTART and $NEWEND are variables I defined earlier in the script that are substituted automatically by bash.
I would upload the BRSTM but Firefox crashes whenever I try to do that, so I'll try again later.

PS. /tmp/output.wav is the music I want to put in the game.
 
Top Bottom