Skip to content

Digital silence results in NaNs #1

@FrancisRussell

Description

@FrancisRussell

When calculating the gated mean of audio that is pure silence, it appears the power result (and also the result of loudness_lkfs()) is NaN. In this case, I'd expect a result like -infinity.

It's unclear to me what the correct behaviour is in this case - a low power value might be sufficient, but as at this is likely going to be used to normalize audio, maybe the gated mean should return an enumeration which can encode that it failed to find any audio above its gating value (which I assume is what happens here).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions