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

Limiter and Compressor filters #149

Merged
merged 16 commits into from
Jan 3, 2025
Merged

Limiter and Compressor filters #149

merged 16 commits into from
Jan 3, 2025

Conversation

alnitak
Copy link
Owner

@alnitak alnitak commented Nov 11, 2024

Description

Added Limiter and Compressor filters.

Happens that playing multiple sounds at the same time can create noise and output distortion. The limiter or the compressor filter can be used to reduce this behavior.
I think the compressor is better suited for games.

Both come with an example in the example/lib/filters dir. Both examples play the same audio at the same time to gain a high and distorted volume. The sliders are used to arrange the filter parameters and find which values are the best to use.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

I tried to do the limiter filter, but I wasn't happy with the results it can have for your use case. So I've also made a compressor filter that may work better for you. I just pushed a PR but starting this I merged the websocket into this new PR and I think you will also see the other changes. Anyway, there is not much Dart code in that to review. So I think it is better first to review the websocket (wrong branch name anyway :) ) and then just try the filters PR.

@alnitak alnitak marked this pull request as ready for review November 11, 2024 16:39
@alnitak alnitak requested a review from filiph November 11, 2024 16:39
@filiph
Copy link
Collaborator

filiph commented Nov 12, 2024

Thanks for doing this! If you don't mind, I'll wait for #148 to be merged and this one to be rebased so that I can have a cleaner view of the changes here.

@alnitak alnitak merged commit f41e804 into main Jan 3, 2025
1 check passed
@alnitak alnitak deleted the limiter branch January 3, 2025 13:23
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