1
0
Fork 0

Print tracks length in debug builds, and remove unnecessary non-null assertion

This commit is contained in:
ivan tkachenko 2025-08-11 22:23:12 +03:00
parent a950093f8e
commit 26f9d2cf9f
1 changed files with 4 additions and 1 deletions

View File

@ -578,6 +578,9 @@ namespace MuzikaGromche
Track track = Tracks[i]; Track track = Tracks[i];
track.LoadedStart = DownloadHandlerAudioClip.GetContent(requests[i * 2]); track.LoadedStart = DownloadHandlerAudioClip.GetContent(requests[i * 2]);
track.LoadedLoop = DownloadHandlerAudioClip.GetContent(requests[i * 2 + 1]); track.LoadedLoop = DownloadHandlerAudioClip.GetContent(requests[i * 2 + 1]);
#if DEBUG
Debug.Log($"{nameof(MuzikaGromche)} Track {track.Name} {track.LoadedStart.length:N4} {track.LoadedLoop.length:N4}");
#endif
} }
Config = new Config(base.Config); Config = new Config(base.Config);
DiscoBallManager.Load(); DiscoBallManager.Load();
@ -2173,7 +2176,7 @@ namespace MuzikaGromche
__instance.farAudio = __state.farAudio; __instance.farAudio = __state.farAudio;
var time = __instance.farAudio.time; var time = __instance.farAudio.time;
var delay = Plugin.CurrentTrack!.LoadedStart.length - time; var delay = Plugin.CurrentTrack.LoadedStart.length - time;
// Override screamingSFX with Loop, delayed by the remaining time of the Start audio // Override screamingSFX with Loop, delayed by the remaining time of the Start audio
__instance.creatureVoice.Stop(); __instance.creatureVoice.Stop();