From f7b113378590ce91c049299003666f376b0e43f3 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 2 Sep 2026 18:28:17 +1000 Subject: [PATCH] [client] audio: poll LGMP streams at 25 microseconds Use the active polling floor as the maximum wait and advertised playback delivery reserve. Keep learned scheduling jitter adaptive. --- client/tests/lgmp_audio_test.c | 2 +- client/transports/LGMP/audio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/tests/lgmp_audio_test.c b/client/tests/lgmp_audio_test.c index 3bf2e853..7d1d22b9 100644 --- a/client/tests/lgmp_audio_test.c +++ b/client/tests/lgmp_audio_test.c @@ -338,7 +338,7 @@ static bool fixtureInit(struct Fixture * fixture) fixture->ops = lgmpAudio_getOps(); CHECK(fixture->ops); CHECK(fixture->ops->playbackFlags == 0); - CHECK(fixture->ops->playbackArrivalReserveUs == 125); + CHECK(fixture->ops->playbackArrivalReserveUs == 25); CHECK(fixture->ops->clockFeedbackAvailable); CHECK(!fixture->ops->clockFeedbackAvailable(fixture->audio)); fixture->endpointGeneration = UINT64_C(0x100000001); diff --git a/client/transports/LGMP/audio.c b/client/transports/LGMP/audio.c index d89a43db..391bc58e 100644 --- a/client/transports/LGMP/audio.c +++ b/client/transports/LGMP/audio.c @@ -37,7 +37,7 @@ #include #define AUDIO_IDLE_POLL_MS 20U -#define AUDIO_ACTIVE_POLL_US 125U +#define AUDIO_ACTIVE_POLL_US 25U #define AUDIO_CLAIM_RETRY_US 200000U #define AUDIO_OWNER_RETRY_US 1200000U #define AUDIO_DRAIN_MAX 32U