Commit d162c2c7 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

black formatting

parent 9cb0a81d
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -80,8 +80,13 @@ def read(
        with catch_warnings(record=True) as warnings_list:
            fs, data = wav.read(filename)
            for w in warnings_list:
                if SUPPRESS_CHUNK_WARNING_WAV_READ and "Chunk (non-data) not understood, skipping it." in str(w.message):
                if (
                    SUPPRESS_CHUNK_WARNING_WAV_READ
                    and "Chunk (non-data) not understood, skipping it."
                    in str(w.message)
                ):
                    continue

                print(f"{filename} : {w.message} ( {w.filename}:{w.lineno} )")
        if data.dtype == np.int32:
            data = np.interp(
+4 −1
Original line number Diff line number Diff line
@@ -32,7 +32,10 @@

import numpy as np

SUPPRESS_CHUNK_WARNING_WAV_READ = False  # suppress warning from .wav read() when chunk size is not a multiple of 2
SUPPRESS_CHUNK_WARNING_WAV_READ = (
    False  # suppress warning from .wav read() when chunk size is not a multiple of 2
)


BINAURAL_AUDIO_FORMATS = {
    "BINAURAL": {