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

[PIPEWIRE+JACK] Frequent Xruns with specific block size settings (beep example)

Abierto
#709 0 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust

Línea de trabajo

Start with the beep example and reproduce the reported Xruns using PIPEWIRE_LATENCY="128/44100" cargo run --features jack --example beep -- --jack on PipeWire's JACK compatibility layer. Compare behavior at block size 512 and with a USB sound card, as the report describes. Done means identifying why the example Xruns under the reported settings and providing a fix or explanation; the issue names no test.

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

Descripción

host - pipewire platform - linux

Hi,

I've run into a lot of Xruns recently when using a specific blocksize/samplerate setting ... it was driving me crazy until I found that the "beep" example provided in the cpal repo has the same problem.

To reproduce, start the beep example with

PIPEWIRE_LATENCY="128/44100" cargo run --features jack --example beep -- --jack

At least on my machine, with the internal sound card, there's a very regular occurrence of Xruns, about one per second.

What I don't understand so far is, in a different project of mine I use cpal in more or less exactly the same manner on the same setup, and I can go down to blocksizes of 64 without problems, even though the audio callback is way heavier.

So I'm really confused why a simple example like the beep example create such a problem.

Some more symptoms/hints:

  • with a blocksize of 512 the problem doesn't occur
  • with another app (i.e. firefox) playing audio in the background, the problem disappears
  • sometimes the problem doesn't occur at all, but most of the time it does
  • with a USB soundcard the problem doesn't occur

About my setup:

  • Arch Linux with kernel: Linux ___ 5.19.13-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 04 Oct 2022 14:36:58 +0000 x86_64 GNU/Linux
  • Pipewire with all the drop-in replacements for jack, pulseaudio, etc (that is, no actual JACK server is running)

Any hints on why this happens or how to fix it ?

Lenguaje dominante
Rust
Estrellas
4k
Forks
554
Merge medio
3 d 3 h
PR fusionados (30 d)
4

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/cpal

Todos los issues de RustAudio/cpal

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.