build fix
This commit is contained in:
@@ -449,13 +449,14 @@ public class Game1 : Game
|
||||
|
||||
string json = File.ReadAllText(TuningProfilePath);
|
||||
TuningProfiles? profile = JsonSerializer.Deserialize<TuningProfiles>(json);
|
||||
if (profile is null)
|
||||
if (!profile.HasValue)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_audioAnalyzer.SetTuning(AudioInputMode.Microphone, profile.Microphone);
|
||||
_audioAnalyzer.SetTuning(AudioInputMode.SystemOutput, profile.SystemOutput);
|
||||
TuningProfiles value = profile.Value;
|
||||
_audioAnalyzer.SetTuning(AudioInputMode.Microphone, value.Microphone);
|
||||
_audioAnalyzer.SetTuning(AudioInputMode.SystemOutput, value.SystemOutput);
|
||||
}
|
||||
|
||||
private readonly record struct TuningProfiles(
|
||||
|
||||
Reference in New Issue
Block a user