Commit 218f3e31 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

Merge branch '77-loudness-processing-not-implemented-for-osba' into 'main'

Resolve "Loudness processing not implemented for OSBA"

See merge request !159
parents 8fd185de 599b6044
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -86,13 +86,15 @@ def bs1770demo(
    result_check = run([str(binary)], check=False)
    if "-rms" not in result_check.stdout:
        raise RuntimeError(
            'An bs1770demo executable without RMS support (cmdl option "-rms") was detected. Please update the bs1770demo executable. See bin/README.md for details.'
            'A bs1770demo executable without RMS support (cmdl option "-rms") was detected. Please update the bs1770demo executable. See bin/README.md for details.'
        )

    if not isinstance(input, audio.BinauralAudio) and not isinstance(
        input, audio.ChannelBasedAudio
    ):
        raise NotImplementedError(f"{input.name} is unsupported in ITU-R BS.1770-4.")
        raise NotImplementedError(
            f"{input.name} is unsupported in ITU-R BS.1770-4. Ensure loudness format was set correctly in CLI/YAML."
        )

    if input.fs != 48000:
        warn(