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).
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).