Skip to content

Feat/grounded timing#56

Merged
chrisuthe merged 3 commits into
masterfrom
feat/grounded-timing
Jun 17, 2026
Merged

Feat/grounded timing#56
chrisuthe merged 3 commits into
masterfrom
feat/grounded-timing

Conversation

@chrisuthe

Copy link
Copy Markdown
Owner

Chased down several timing related issues and fixed the apps ability to use the resampler properly.

QOL == sync without side effects.

With the after-Init StreamLatency fix in this branch, the app now reports its real
device latency and 9.0.6 subtracts it from the playback schedule - so each DAC lands
in sync on the server's clock with no manual StaticDelay offset.
… 9.1.0)

The WDL resampler underran by ~1 frame on every speed-up callback: ResamplePrepare returns an integer input count and drops the fractional input the sinc filter needs for the last output frame, so it emitted outputFrames-1 and the shortfall was concealed with a repeated frame -- audible as a continuous tick train, and the repeat cancelled the speed-up so the correction never landed and the rate kept climbing. Drain instead: feed the small remaining input and call ResampleOut again until the full block is produced from real content. The extra read happens only on short callbacks, so average input matches the commanded rate -- no over-read, no drift.

Retarget Sendspin.SDK to 9.1.0, which subtracts the ReadRaw prefill baseline (removing the constant ~100ms offset that had pinned the external corrector at its max slow rate) and adds ReportExternalPlaybackRate so Stats for Nerds shows the real correction rate; report the resampler's applied rate to the buffer for that stat.
@chrisuthe
chrisuthe merged commit 9bb8228 into master Jun 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant