Skip to content

Commit

Permalink
add convert.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
noisecode3 committed Jul 18, 2024
1 parent 0ba8f6b commit 5605c65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
11 changes: 6 additions & 5 deletions utils/README
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ installing it.
6.The Hidden Dagger II - Dragon's Legacy
https://www.trle.net/sc/levelfeatures.php?lid=3621
Starts the game and first map, backgrund audio is missing
Note: I got it partly fixed here https://github.com/noisecode3/ogg-winmm
but you need to replace winmm.dll remove ffplay.dll and convert the files
in the music map to ogg and then rename the tracks to Track02.ogg, Track03.ogg.
I gott something playing in the background at the start of the map. I could work on it
a bit more maybe I could figure it out. Or you can.

Note: I got the build fix here https://github.com/noisecode3/ogg-winmm
but you need to replace winmm.dll remove ffplay.dll and convert the files
I left a script called convert.sh you have to it copy to
~/.local/share/TombRaiderLinuxLauncher/6.TRLE/music
and run it from there
7 changes: 7 additions & 0 deletions utils/convert.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
for file in *.wma; do ffmpeg -i "$file" -c:a libvorbis -q:a 4 "${file%.*}.ogg"; done
i=12
for file in *.ogg; do
mv "$file" "Track$(printf %02d $i).ogg"
((i++))
done

0 comments on commit 5605c65

Please sign in to comment.