Repository navigation
Conversation
The rootless capture loop added up to ~0.5 s of delay, which puts video out of sync. The new "Low-latency mode" setting (on by default) reads in small blocks, caps the output queue, uses the low-latency output path and drops a block whenever the output queue grows past its target. Also adds a latency test harness: a probe app, loop telemetry in debug builds and tools/latency/run_latency_test.py.
Runs the EQ curve (GEQ + PEQ) inside each app with Android's DynamicsProcessing effect instead of capturing audio, so video stays in sync. The curve is fitted to the effect's pre-EQ, MBC and post-EQ stages (up to 380 bands) against its actual block response. Settings: Android EQ on/off, latency (~10/20/40 ms) and a limiter.
Contributor
Author
|
Moved into #350, which bundles this with Live EQ, per-channel PEQ and a song tonality analyzer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rootless mode adds a lot of delay between the original audio and what you hear, so video (YouTube etc.) goes out of sync. This adds two options under Audio processing.
Low-latency mode (on by default)
Bluetooth, cold start: A/V offset about 340 ms before, about 120 ms after.
Android EQ (off by default)
Instead of capturing, the GEQ/PEQ curve runs inside each app with Android's DynamicsProcessing effect, so video stays in sync. The curve is fitted to the effect's pre-EQ, MBC and post-EQ stages (up to 380 bands) against its actual block response. Settings: latency (~10/20/40 ms), limiter. Other effects are off in this mode.
Measured on the speaker with a mic: 10/21/42 ms added depending on the latency setting, and a -10 dB preamp comes out at -9.4 dB.
The measuring tools are included: a small probe app (
latencyprobe), loop telemetry in debug builds, andtools/latency/run_latency_test.py. Seetools/latency/README.md.