Commit 599b6044 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

update error message for bs1770demo wrapper

parent 9b5e56ae
Loading
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(