forked from nikita/muzika-gromche
Print tracks length in debug builds, and remove unnecessary non-null assertion
This commit is contained in:
parent
a950093f8e
commit
26f9d2cf9f
|
@ -578,6 +578,9 @@ namespace MuzikaGromche
|
|||
Track track = Tracks[i];
|
||||
track.LoadedStart = DownloadHandlerAudioClip.GetContent(requests[i * 2]);
|
||||
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);
|
||||
DiscoBallManager.Load();
|
||||
|
@ -2173,7 +2176,7 @@ namespace MuzikaGromche
|
|||
__instance.farAudio = __state.farAudio;
|
||||
|
||||
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
|
||||
__instance.creatureVoice.Stop();
|
||||
|
|
Loading…
Reference in New Issue