render: flush queued audio on a processor change so effects are heard almost at once
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 8/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- ios, macos, swift
- Ambito
- audio-video-rtc, mobile-dev
Direzione di ricerca
The feeder and processor chain are the starting points, and the design question is whether AVSampleBufferAudioRenderer.flush(fromSourceTime:) can replace a full flush on a processor change. Read docs/usage.md around line 319 and ADR 0026 for the current latency, plus ADR 0009 and ADR 0018 for seek and flush costs. Done means a new ADR that settles the approach, not a patch.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Processors (EQ, ReplayGain, Voice Boost, skip-silence) run when audio is written. A change is therefore heard one feed depth (2 s) plus the route's output latency later (docs/usage.md:319, ADR 0026).
AVSampleBufferAudioRenderer.flush(fromSourceTime:) discards queued audio after a given time without an audible gap (WWDC17 509). On a processor change, the feeder could flush from the clock plus a small margin and re-feed from there through the new chain. Effects would then be heard almost at once, whatever the depth.
That would also make a deep output buffer safe, which demand-driven feeding on AirPlay 2 would need: there the renderer asks for up to minutes ahead.
Costs and questions:
flush()blocks 74-80 ms (ADR 0018); unverified forflush(fromSourceTime:).- The re-feed needs the PCM from before processing, or a re-decode from the flush time (the sample-accurate seek, ADR 0009, allows it).
- The fake output needs to model a partial flush.
Needs its own ADR. Context: timusus/shuttle2#1064, #183.
- Lingua principale
- C
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un 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 timusus/AudioPlaybackKit
-
idea
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
timusus/AudioPlaybackKit#185 ·
-
Crossfade between itemsApertaenhancement idea
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
timusus/AudioPlaybackKit#172 ·
Tutte le issue di timusus/AudioPlaybackKit
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
dosemu2/dosemu2#3178 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
backlog bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
EchoTools/nevr-runtime#653 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
InfiniTimeOrg/InfiniTime#2492 ·
-
Build fails when `memset_s` is unavailable: `Undefined symbols for architecture ppc: "_memset_s"`Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
XML_GetCurrentByteIndex64() returns -1 instead of a meaningful offset when m_eventPtr is NULLAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno