Sound crackles when playing ogg file

Open
#928 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start with the music_ogg.rs example and reproduce the crackling on a loud .ogg file. The reporter bisected the regression to the commit after d9a6366ea9ff118acb89a3a1cc25d4bae7d5181e, which is the first place to read the diff. Done means the example plays cleanly on the affected files and the fix does not reintroduce the earlier behaviour.

Written by the indexing model from the issue text.

Description

The "music_ogg.rs" example sounds crackly when I run it.

The example works fine in this commit: d9a6366ea9ff118acb89a3a1cc25d4bae7d5181e.

The problem begins with the very next commit: 92643440022edaca116ca7ae8a5a21a3e2fd90c1.

The problem is better but is still present as of the latest commit (685e05765c2aff8fbb51e32cda5b18428d09ffbe). It's more obvious with some .ogg files than others. Maybe louder files are worse?

Environment

I'm running Arch Linux with PipeWire sound.

Dominant language
Rust
Stars
2.5k
Forks
338
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RustAudio/rodio

All issues in RustAudio/rodio

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.