[linux] [chromeOS] Recording with BufferSize < 1024 leads to bad audio
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- rust
- Ambito
- audio-video-rtc
Direzione di ricerca
Start by tracing how cpal reports the minimum buffer size for Linux audio devices, then inspect the backend path used by ChromeOS’s Linux subsystem. The report points to buffers below 1024 being truncated, but does not identify the responsible layer or a file or test. Done means reporting a minimum size of 1024 where that limit applies and verifying that requested buffers do not lose audio data.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
On ChromeOS, using the Linux subsystem the cpal library seems to work correctly and records audio. However if I request buffer size smaller than 1024 (I used 480 and 960 for single-channel, 48 kHz 10 ms or 20 ms chunks) I receive buffers of the requested size that result in incorrect audio when played back (the audio is shorter than expected, higher pitched and has artifacts). After much investigation it seems like those are 1024-buffers truncated to the requested size and the truncated data is lost (instead of being passed in the next callback invocation). Requesting buffers of size 480 leads to ~0.5x audio length, and 960 is almost okay (with just some artifacts), which led me to the 1024 bytes conclusion. If requested BufferSize is >= 1024 then all the audio data is received correctly.
In such cases it would be nice for cpal to report the minimal buffer size as 1024, as opposed to 1.
This is not reproducible on my other Linux machines, and I have no clue which layer of the stack is responsible for truncation.
- 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