]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
don't ogg talk.wav, talk2.wav
authorRudolf Polzer <divverent@xonotic.org>
Thu, 30 Jun 2011 18:39:09 +0000 (20:39 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 30 Jun 2011 18:39:09 +0000 (20:39 +0200)
misc/tools/cached-converter.sh

index 104b657d2bfd8188ff69264b1bb6e66f824c1546..1a1ae07b62b9ce72f3889dabe884c26d5161c49c 100755 (executable)
@@ -288,7 +288,9 @@ for F in "$@"; do
 
        will_jpeg=$do_jpeg
        will_dds=$do_dds
+       will_ogg=$do_ogg
        case "$f" in
+               ./sounds/misc/talk*.wav) will_ogg=false ;; # engine "feature"
                *_bump) will_dds=false ;;
                ./models/player/*) will_dds=false ;;
                ./models/sprites/*) will_dds=false ;;
@@ -365,13 +367,13 @@ for F in "$@"; do
                        rm -f "$F.hasalpha"
                        ;;
                *.ogg)
-                       cached "$do_ogg" reduce_ogg_ogg "$F" "" "$F" "" "$ogg_qual"
+                       cached "$will_ogg" reduce_ogg_ogg "$F" "" "$F" "" "$ogg_qual"
                        ;;
                ./sound/misc/null.wav)
                        # never convert this one
                        ;;
                *.wav)
-                       cached "$do_ogg" reduce_wav_ogg "$F" "" "${f}.ogg" "" "$ogg_qual"
+                       cached "$will_ogg" reduce_wav_ogg "$F" "" "${f}.ogg" "" "$ogg_qual"
                        ;;
        esac
        selfprofile marktodelete