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.
目前我们直接使用 AudioSource.time(和 dsp time 同步更新) 来作为音游的更新参考时间,这在 windows 和一般用例的 android 上工作得还算正常,但在 android + bluetooth 时可以观察到总是具有 6-8 帧的停顿
这个 PR 引入了一系列不与 dsp time 强绑定的独立计时器,但还未经过充分测试
引入的 Timer:
其他相关更改:
音乐现在不再从 MusicTrack 播放,而是由 MusicGameProcedure 直接安排播放,以精确的控制播放时间
音乐总是延迟 1s 左右播放 ,在 android + bluetooth 上可能受到 dsp time 停顿的影响而延迟 800ms - 900ms,延迟可调
Fixes:
部分修复 #200
Edit:
note: 经过实际环境测试,多次暂停产生的偏移几乎不可接受,需要进一步确认问题发生的原因