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;