This commit is contained in:
SoulliesOfficial
2025-08-22 14:54:40 -04:00
parent 6aa498f6be
commit 70b2a43824
574 changed files with 173713 additions and 1884 deletions

View File

@@ -57,21 +57,13 @@ namespace Ichni
if (audioManager.isPlaying)
{
songTimeSegment = PlaySegment() / 1000f - (judgeOffset / 1000f);
if (songTimeSegment > 0)
float currentSongSegment = PlaySegment() / 1000f - (judgeOffset / 1000f);
if (recordedSongSeg < currentSongSegment)
{
recordedSongSeg = songTimeSegment;
songTimeSegment = currentSongSegment;
recordedSongSeg = currentSongSegment;
}
/*
else if (songTimeSegment == 0 && recordedSongSeg > 0)
{
audioManager.isFinished = true;
songTimeSegment = recordedSongSeg;
}*/
//Debug.Log($"Song Time Segment: {songTimeSegment}, Recorded Segment: {recordedSongSeg}");
}
else if (audioManager.isPausing)
{
@@ -98,7 +90,7 @@ namespace Ichni
[Button]
public void PauseSong()
{
pauseTimeSegment = PlaySegment() / 1000f - (judgeOffset / 1000f);
pauseTimeSegment = songTimeSegment;
audioManager.isPlaying = false;
audioManager.isPausing = true;
PauseMusicEvent.Post(gameObject);
@@ -130,6 +122,7 @@ namespace Ichni
{
if (in_info is AkMusicSyncCallbackInfo musicInfo)
{
GameManager.instance.songInformation.songLength = musicInfo.segmentInfo_iActiveDuration / 1000f;
InformationTransistor.instance.songLength = musicInfo.segmentInfo_iActiveDuration / 1000f;
InformationTransistor.instance.bpm = GameManager.instance.songInformation.bpm;
}