day 1 TOTC patch

fix scheduled optic blast not working correctly
let multisound defer playback until conductor timekeeping is active
fix flipper flop end-of-roll calls
update kurokane modified
This commit is contained in:
minenice55
2024-01-13 13:31:05 -05:00
parent 82a5e4a9df
commit 8f33212e0c
6 changed files with 66 additions and 19 deletions

View File

@ -50,6 +50,7 @@ namespace HeavenStudio
double dspSizeSeconds;
double dspMargin = 128 / 44100.0;
bool deferTimeKeeping = false;
public bool WaitingForDsp => deferTimeKeeping;
// the dspTime we started at
private double dspStart;
@ -163,6 +164,12 @@ namespace HeavenStudio
GameManager.instance.SetCurrentEventToClosest(beat);
}
public void PlaySetup(double beat)
{
deferTimeKeeping = true;
songPosBeat = beat;
}
public void Play(double beat)
{
if (isPlaying) return;
@ -220,7 +227,7 @@ namespace HeavenStudio
startTime = DateTime.Now;
absTimeAdjust = 0;
deferTimeKeeping = (musicSource.clip != null);
deferTimeKeeping = musicSource.clip != null;
isPlaying = true;
isPaused = false;