From 61414b2fef04b8b1d8ac4a373f0dac2a7a188370 Mon Sep 17 00:00:00 2001 From: Oliver Wong Date: Mon, 27 Apr 2026 20:08:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=AA=E9=85=8D=E7=BD=AEbpm=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E5=90=AF=E5=8A=A8=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/OCES/Audio/HandWritten/LongAudio/BeatClock.cs | 1 + .../OCES/Audio/HandWritten/LongAudio/MusicChannelPlayer.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/OCES/Audio/HandWritten/LongAudio/BeatClock.cs b/Assets/Scripts/OCES/Audio/HandWritten/LongAudio/BeatClock.cs index 92eece1..34996c8 100644 --- a/Assets/Scripts/OCES/Audio/HandWritten/LongAudio/BeatClock.cs +++ b/Assets/Scripts/OCES/Audio/HandWritten/LongAudio/BeatClock.cs @@ -28,6 +28,7 @@ namespace OCES.Audio internal void Restart(MusicContainer container, float inheritedBpm, double dspTime) { + //Debug.Log($"[BeatClock] Restarting {container.Id}, inheritedBpm = {inheritedBpm}, dspTime = {dspTime}"); StopAll(); this.m_blendError = this.m_stopped = false; this.m_containerId = container.Id; diff --git a/Assets/Scripts/OCES/Audio/HandWritten/LongAudio/MusicChannelPlayer.cs b/Assets/Scripts/OCES/Audio/HandWritten/LongAudio/MusicChannelPlayer.cs index 3e9a75f..e9f60cd 100644 --- a/Assets/Scripts/OCES/Audio/HandWritten/LongAudio/MusicChannelPlayer.cs +++ b/Assets/Scripts/OCES/Audio/HandWritten/LongAudio/MusicChannelPlayer.cs @@ -164,7 +164,7 @@ namespace OCES.Audio onContainerStarted: () => { MusicContainer container = this.m_containerConfig.QueryById(newContainerId); - float bpm = container.Bpm > 0f ? container.Bpm : 120f; + float bpm = container.Bpm; // SyncPoint: BeatClock 用调整后的 dspTime,对齐到音频实际播放位置 double dspTime;