Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add statsd report for loud messages #46

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

f00b4r0
Copy link
Contributor

@f00b4r0 f00b4r0 commented Jul 27, 2024

Following up on #43 this adds a simple per-channel counter for (good) loud messages. A loud message is any message decoded above 0dBFS, to keep things simple.

HTH :)

@f00b4r0 f00b4r0 force-pushed the loud branch 2 times, most recently from 7ff8f99 to 17ae026 Compare July 27, 2024 10:45
@szpajder
Copy link
Owner

Thanks, but why bother computing a logarithm only to compare it with a 0?

That's a bit wasteful, no?

@f00b4r0
Copy link
Contributor Author

f00b4r0 commented Jul 28, 2024

Thanks, but why bother computing a logarithm only to compare it with a 0?

That's a bit wasteful, no?

Oh yeah sorry I was on glue. I initially planned to check for +1dBFS and then decided to go with 0 (which made more sense for counting overloads), and completely forgot to remove the log. I'll resubmit, checking for frame_pwr > 1.0 😅

This counter is increased for every good message above 0dBFS
@szpajder szpajder merged commit a398633 into szpajder:unstable Jul 29, 2024
3 of 4 checks passed
@f00b4r0 f00b4r0 deleted the loud branch October 15, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants