Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Audio Crackling and Default Config unchangable on Windows(Main Branch)

Aperta
#900 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
audio-video-rtc, rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
2.5k
Fork
338
Merge medio
1g 3h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RustAudio/rodio

Tutte le issue di RustAudio/rodio

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.