only call sox when needed

This commit is contained in:
Vincent Riquer 2013-03-12 02:45:36 +01:00
parent b7948f669e
commit 2d0ebd6918

12
atom
View File

@ -1244,7 +1244,17 @@ do
case "$extendedtype" in
*'Musepack '*)
decodeMpcdec
sox_needed=1
if (( ${destinationnormalize["$destination"]}))\
|| (
[ -n "${destinationfrequency["$destination"]}" ]\
&& (( ${rate:-0} != ${destinationfrequency["$destination"]}))\
) || (
[ -n "${destinationchannels["$destination"]}" ]\
&& (( ${channels:-0} != ${destinationchannels["$destination"]} ))
)
then
sox_needed=1
fi
;;
*)
decodeSox