Migrate to C#12

This commit is contained in:
copecone committed 2026-10-22 11:54:26 +09:00
1 parent 7eaf4f48e6
commit 98d31404cc
24 files changed
+42 -42

No files matched your search

+2 -2
View File
@@ -75,7 +75,7 @@ internal static class AudioSpectrumGenerator
_store = _ownStore;
}
_source = AudioClipResolver.GetOrAdd(_store, clip!.name, clip);
_source = AudioClipResolver.GetOrAdd(_store, clip.name, clip);
if (_source == null)
{
Melon<RenderMod>.Logger.Error($"[AudioSpectrumGenerator] Song clip '{clip.name}' could not be loaded, the spectrum will be empty.");
@@ -125,7 +125,7 @@ internal static class AudioSpectrumGenerator
{
var n = samples.Length;
var conductor = scrConductor.instance;
if (_source == null || _store == null || !conductor || !conductor!.hasSongStarted || !conductor.song
if (_source == null || _store == null || !conductor || !conductor.hasSongStarted || !conductor.song
|| n == 0 || (n & (n - 1)) != 0)
{
Array.Clear(samples, 0, n);