Remove duplicate information from duplex callbacks
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- audio-video-rtc
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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,
}
- Lenguaje dominante
- Rust
- Estrellas
- 4k
- Forks
- 554
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 1
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RustAudio/cpal
-
API design
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
-
correctness
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
aaudio: dynamic buffer tuning never grows the buffer (set_buffer_size_in_frames reports Err on success)Posiblemente ocupada @dannyward630 la tomó hace 39 días. Abiertohost - aaudio platform - android
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
-
WebAudio wasm build fails with wasm-bindgen panic=unwind closuresPosiblemente ocupada @bogusyogi la tomó hace 48 días. Abiertohost - webaudio platform - web
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
PipeWire: dropping callback captures on the realtime worker can terminate the process with SIGXCPUAbiertohost - pipewire platform - linux
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Todos los issues de RustAudio/cpal
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
ci: migrate pinned macos-15 runners to macos-26 and macos-26-intelPosiblemente ocupada @hawkingrei la tomó hoy. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
nowledge-co/hawdb#2224 ·
Los mantenedores suelen responder en 1 día
-
Effective coverage reads function totals as line totals when the LLVM report has no branchesAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eclipse-score/coverage_tool#95 ·
Los mantenedores suelen responder en 2 días
-
bug nvim
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100