build fix
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user