Audio Crackling and Default Config unchangable on Windows(Main Branch)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- audio-video-rtc, rust
- Domain
- audio-video-rtc
Research direction
The report points at the Windows output path reached through SpeakersBuilder, default_device and default_config, and at try_buffer_duration and try_sample_rate in the main branch. Start by reproducing the crackling with the git revision a359d2a versus the crates.io release, then compare how the two handle buffer size and sample rate on Windows. Done means the default config plays cleanly on Windows again and the 1 ms buffer and 44100 Hz settings no longer panic with an unsupported device error.
Written by the indexing model from the issue text.
Description
Using the Crates.io Version of Rodio the audio plays perfectly fine on Windows with
SpeakersBuilder::new()
.default_device()
.unwrap()
.default_config()
.unwrap();
however when using the Git repo version the audio is just pure crackling and popping noises.
https://github.com/user-attachments/assets/8506f55f-4de5-4bbd-96cb-cb0d4530cf5c
the above example is using git = "https://github.com/RustAudio/rodio", rev = "a359d2a"
the is the working Example using the Crates.io Version
https://github.com/user-attachments/assets/6f38ae6c-753f-43c8-a531-8359b308f642
Also I noticed in the Crates Version I can do
.try_buffer_duration(Duration::from_millis(1))
.unwrap()
.try_sample_rate(SampleRate::new(44100).expect("should never fail..."))
.unwrap()
but if i try this in the main branch it panics saying unsupported device even though it worked before....
Please let me know if you have any questions.
- Dominant language
- Rust
- Stars
- 2.5k
- Forks
- 338
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RustAudio/rodio
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 1/5 Under an hour Newbie friendliness 73/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 67/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
ci: migrate pinned macos-15 runners to macos-26 and macos-26-intelPossibly taken @hawkingrei claimed this today. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
nowledge-co/hawdb#2224 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
eclipse-score/coverage_tool#95 ·
Maintainers usually reply within 2 days
-
bug nvim
Difficulty 2/5 1-3 hours Newbie friendliness 74/100