Remove duplicate information from duplex callbacks
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- audio-video-rtc
Direzione di ricerca
Start by locating DuplexCallbackInfo, CallbackInfo, and StreamTimestamp::callback, then trace the duplex callback data flow and their dependencies on #1437. Confirm that the refactor leaves one callback timestamp, one xrun, and one shared data length, potentially using a separate duplex data struct with distinct input and output pointers. No specific files or tests are named in the issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
DuplexCallbackInfois composed of 2CallbackInfos, which means it contains 2 distinctStreamTimestamp::callbackvalues. But duplex streams use a single shared data callback, so there is only 1 callback timestamp to record. This doesn't apply to the device timestamp, as the output one is merely a prediction based on latency (which I think should be exposed separately, but that's another topic).- Having 2 distinct
xrunvalues is pointless, as a disjoint xrun would be, well, disjoint, but the whole point of duplex streams is making this impossible. - Duplex callbacks take 2 distinct
Dataparameters, each with its ownlen. These being distinct from one another would again defeat the essence of a duplex stream, so there should only be 1len.
If we follow through with #1437, then we could simply remove As for the 3rd point, I suggest adding a struct like this:DuplexCallbackInfo and use the regular CallbackInfo in its place.
struct DuplexData {
input: *const (),
output: *mut (),
len: usize,
input_format: SampleFormat,
output_format: SampleFormat,
}
- Lingua principale
- Rust
- Stelle
- 4k
- Fork
- 554
- Merge medio
- 1g 3h
- PR unite (30g)
- 1
Preparare l'ambiente
- Include un Dockerfile o un 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/cpal
-
API design
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
correctness
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
aaudio: dynamic buffer tuning never grows the buffer (set_buffer_size_in_frames reports Err on success)Forse già presa @dannyward630 l’ha presa 39 giorni fa. Apertahost - aaudio platform - android
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
-
WebAudio wasm build fails with wasm-bindgen panic=unwind closuresForse già presa @bogusyogi l’ha presa 48 giorni fa. Apertahost - webaudio platform - web
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
PipeWire: dropping callback captures on the realtime worker can terminate the process with SIGXCPUApertahost - pipewire platform - linux
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Tutte le issue di RustAudio/cpal
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
ci: migrate pinned macos-15 runners to macos-26 and macos-26-intelForse già presa @hawkingrei l’ha presa oggi. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
nowledge-co/hawdb#2224 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eclipse-score/coverage_tool#95 ·
I maintainer di solito rispondono entro 2 giorni
-
bug nvim
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100