Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#900 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
audio-video-rtc, rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
2.5k
Forks
338
Merge medio
1 d 3 h
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RustAudio/rodio

Todos los issues de RustAudio/rodio

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.