-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rework _dspTimeOffset synchronization logic
It is now a cumulative average of the target offset values calculated on each frame After some time has passed, the value is locked in If the target offset deviates too far from the current average, the average is reset to the current target and starts accumulating again An additional small offset is applied to compensate for the average trending towards a slightly desynced value This strategy works reliably and consistently to get an accurate offset to within a handful of audio samples There is still some run-to-run variation, but it is much better than before
- Loading branch information
1 parent
f8301e1
commit 7b3ceb0
Showing
1 changed file
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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