build fix

This commit is contained in:
Michal Vrba
2026-02-24 14:37:15 +01:00
parent 069c2a84c5
commit 34e2ed32cf
+4 -3
View File
@@ -449,13 +449,14 @@ public class Game1 : Game
string json = File.ReadAllText(TuningProfilePath); string json = File.ReadAllText(TuningProfilePath);
TuningProfiles? profile = JsonSerializer.Deserialize<TuningProfiles>(json); TuningProfiles? profile = JsonSerializer.Deserialize<TuningProfiles>(json);
if (profile is null) if (!profile.HasValue)
{ {
return; return;
} }
_audioAnalyzer.SetTuning(AudioInputMode.Microphone, profile.Microphone); TuningProfiles value = profile.Value;
_audioAnalyzer.SetTuning(AudioInputMode.SystemOutput, profile.SystemOutput); _audioAnalyzer.SetTuning(AudioInputMode.Microphone, value.Microphone);
_audioAnalyzer.SetTuning(AudioInputMode.SystemOutput, value.SystemOutput);
} }
private readonly record struct TuningProfiles( private readonly record struct TuningProfiles(