Output pipeline lag monitoring
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
- Ambito
- audio-video-rtc
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
- Lingua principale
- Rust
- Stelle
- 2.5k
- Fork
- 338
- Merge medio
- 1g 3h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RustAudio/rodio
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 73/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
-
WavDecoder::size_hint underflows (u32 wrap, ~4.29e9) after EOF, causes multi-GB Vec::collect() allocationForse già presa @marin-m l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Tutte le issue di RustAudio/rodio
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
status:untriaged
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
midnightntwrk/midnight-zk#592 ·
I maintainer di solito rispondono entro 3 giorni
-
QuartoHub: have the Document name before the filename in the browser tabForse già presa @cscheid l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
quarto-dev/q2#930 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
muse P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
HerringtonDarkholme/hd-lang#923 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno