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

Output pipeline lag monitoring

Aperta
#912 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
audio-video-rtc, rust

Direzione di ricerca

The issue asks for a rodio API for output pipeline lag, built from CPAL's device-playback timestamps, but it does not settle the shape of that API. Start by reading how rodio's output stream wraps CPAL's output callback and the timestamp data that callback receives. Done means a design decision agreed with maintainers, since the author explicitly leaves the API surface open and it links to issue 597 for context.

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

Descrizione

For real-time applications performing voice conversation, it can be important to know the output pipeline's lag, case in point being wanting to not listen to their own audio output if they don't use an algorithm for detecting own-output on the real-time audio input stream while playing output.

The underlying information signal for this is already available from CPAL but currently not being used by rodio code; hence there is neither any rodio API surface for querying it.

How API surface exposing those timestamps from CPAL or API surface providing digests of them would likely be highly opinionated. My own patch for that information is Generative AI based and does not reflect a generic sense of what different scenarios than my own would want the API surface of it to be like:

  • It's not a raw raw-timestamp passthrough API passing the timestamps from rodio,
  • But one which provides a digest of accumulates stats when called.
  • For every CPAL output callback, it subtracts the callback invocation timestamp from CPAL’s predicted device-playback timestamp, and keeps these as samples on a ring-buffer.

Which is highly opinionated.

It would be nice to have an equivalent catering to the overall desire for lag information based on CPAL's said timestamps, which closely fits the realtime considerations and preferences of this project about timing-related telemetery API.


Related

https://github.com/RustAudio/rodio/issues/597

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.