π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Change tolerance for AIFC files.
Peter Sobot37a611acde43
diff --git a/tests/test_io.py b/tests/test_io.pyindex 6d2160c..57b4dc9 100644--- a/tests/test_io.py+++ b/tests/test_io.py@@ -27,7 +27,7 @@ import numpy as npfrom .utils import generate_sine_atEXPECTED_DURATION_SECONDS = 5-EXPECT_LENGTH_TO_BE_EXACT = {"wav", "aiff", "aifc", "caf", "ogg", "m4a", "mp4"}+EXPECT_LENGTH_TO_BE_EXACT = {"wav", "aiff", "caf", "ogg", "m4a", "mp4"}TEST_AUDIO_FILES = {44100: glob.glob(os.path.join(os.path.dirname(__file__), "audio", "correct", "*44100*")),@@ -54,7 +54,7 @@ UNSUPPORTED_FILENAMES = [def get_tolerance_for_format_and_bit_depth(extension: str, input_format, file_dtype: str) -> float:if not extension.startswith("."):extension = "." + extension- if extension in {".wav", ".aiff", ".aifc", ".flac"}:+ if extension in {".wav", ".aiff", ".flac"}:file_bit_depth = int(file_dtype.replace("float", "").replace("int", ""))if np.issubdtype(input_format, np.signedinteger):input_bit_depth = np.dtype(input_format).itemsize * 8