Requested buffer size not used on macOS
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- rust
- Ambito
- audio-video-rtc
Direzione di ricerca
The report concerns output stream buffer sizing on macOS with CPAL 0.15.0. Start by reading the CoreAudio output stream configuration path and its tests; the payload does not name specific files or tests. Done means determining whether the requested size is supported, documenting the behavior, and exposing the chosen size before playback if the API can provide it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hey there! I'm running into the following issue:
- I'm enumerating through all the
supported_output_configs()and finding one where my preferred buffer size fits within theSupportedBufferSizerange. - I call
SupportedStreamConfigRange::with_sample_rate().config()on this with a rate within the range - On the resulting
StreamConfig, I set the buffer size to my preferred one, knowing it's within range - Build an output stream
The requested buffer size isn't taken into account. When I request 128 I get a stream of 279. Other times I get 512.
Am I doing something wrong? Is this a bug? Or is this a limitation of the CoreAudio framework, and if so:
- How do other software packages work around this, where you can pick a precise buffer size in the preferences?
- Shouldn't CPAL document this, and call this variable
preferred_buffer_sizeor something? - Is there a way of knowing what max buffer size was decided on for the stream, before I call
play()it? I need that information to build my audio chain
This is on macOS Ventura 13.1, with CPAL 0.15.0.
- Lingua principale
- Rust
- Stelle
- 4k
- Fork
- 554
- Merge medio
- 3g 3h
- PR unite (30g)
- 4
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
-
aaudio: dynamic buffer tuning never grows the buffer (set_buffer_size_in_frames reports Err on success)Forse già presa @dannyward630 l’ha presa 5 giorni fa. Apertahost - aaudio platform - android
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
WebAudio wasm build fails with wasm-bindgen panic=unwind closuresForse già presa @bogusyogi l’ha presa 14 giorni fa. Apertahost - webaudio platform - web
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
RustAudio/cpal#1394 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
New WASAPI implementationApertacode quality dependencies host - wasapi platform - windows
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
RustAudio/cpal#1416 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
host - pipewire platform - linux
Difficoltà 4/5 1-2 giorni Idoneità per principianti 52/100
RustAudio/cpal#1405 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
WASAPI: default-device activation fails with RPC_E_CHANGED_MODE after endpoint-notification callbacks put thread-pool threads into an STAForse già presa @dannyward630 l’ha presa 6 giorni fa. Apertacorrectness host - wasapi platform - windows
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
RustAudio/cpal#1402 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RustAudio/cpal
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
yunfie-twitter/Palleria#474 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
servo/rust-smallvec#827 ·
I maintainer di solito rispondono entro 1 giorno
-
bug tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno