diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-24 17:14:26 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-24 17:14:26 -0300 |
| commit | 2a985de88cd0f2766b2e3482725ca4b4806363ab (patch) | |
| tree | 618ba3ee18743859b123d51f821567995f7388a2 /Ryujinx.Core/OsHle/SystemStateMgr.cs | |
| parent | a8ba340ddef566517f197911863b127545685d5d (diff) | |
[HLE/Audio] Use correct audio device names
Diffstat (limited to 'Ryujinx.Core/OsHle/SystemStateMgr.cs')
| -rw-r--r-- | Ryujinx.Core/OsHle/SystemStateMgr.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Ryujinx.Core/OsHle/SystemStateMgr.cs b/Ryujinx.Core/OsHle/SystemStateMgr.cs new file mode 100644 index 00000000..3223abfb --- /dev/null +++ b/Ryujinx.Core/OsHle/SystemStateMgr.cs @@ -0,0 +1,34 @@ +namespace Ryujinx.Core.OsHle +{ + class SystemStateMgr + { + internal static string[] AudioOutputs = new string[] + { + "AudioTvOutput", + "AudioStereoJackOutput", + "AudioBuiltInSpeakerOutput" + }; + + public string ActiveAudioOutput { get; private set; } + + public SystemStateMgr() + { + SetAudioOutputAsBuiltInSpeaker(); + } + + public void SetAudioOutputAsTv() + { + ActiveAudioOutput = AudioOutputs[0]; + } + + public void SetAudioOutputAsStereoJack() + { + ActiveAudioOutput = AudioOutputs[1]; + } + + public void SetAudioOutputAsBuiltInSpeaker() + { + ActiveAudioOutput = AudioOutputs[2]; + } + } +}
\ No newline at end of file |
