mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-25 15:34:10 +02:00
Upgrade libsoxr to 0.1.3
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
# SoX Resampler Library Copyright (c) 2007-13 robs@users.sourceforge.net
|
||||
# Licence for this file: LGPL v2.1 See LICENCE for details.
|
||||
|
||||
if (${bits} STREQUAL 24)
|
||||
set (quality 45)
|
||||
else ()
|
||||
set (quality 44)
|
||||
endif ()
|
||||
math (EXPR quality "43 + (${bits} - 13) / 4")
|
||||
set (ofile ${irate}-${orate}-${quality}.s32)
|
||||
#message (STATUS "Output file = [${ofile}]")
|
||||
|
||||
set (output ${from}-${to}-${quality}.s32)
|
||||
|
||||
execute_process(COMMAND ${EXAMPLES_BIN}3-options-input-fn ${from} ${to} 1 2 2 ${quality} a
|
||||
INPUT_FILE ref-${from}.s32
|
||||
OUTPUT_FILE ${output}
|
||||
execute_process(COMMAND ${EXAMPLES_BIN}3-options-input-fn ${irate} ${orate} 1 2 2 ${quality} a
|
||||
INPUT_FILE ref-${irate}.s32
|
||||
OUTPUT_FILE ${ofile}
|
||||
ERROR_VARIABLE test_error
|
||||
RESULT_VARIABLE test_result)
|
||||
|
||||
@@ -19,7 +15,11 @@ if (test_result)
|
||||
message (FATAL_ERROR "Resampling failure: ${test_error}")
|
||||
endif ()
|
||||
|
||||
execute_process(COMMAND ${BIN}vector-cmp ref-${to}.s32 ${output} ${to} ${leader} ${len} ${bits} 98
|
||||
set (percentageToCheck 98)
|
||||
math (EXPR lenToCheck "${len} * ${percentageToCheck}")
|
||||
string (REGEX REPLACE "(..)$" ".\\1" lenToCheck "${lenToCheck}") # Divide by 100
|
||||
|
||||
execute_process(COMMAND ${BIN}vector-cmp ref-${orate}.s32 ${ofile} ${orate} ${lenToSkip} ${lenToCheck} ${bits}
|
||||
OUTPUT_VARIABLE test_output
|
||||
RESULT_VARIABLE test_result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user