SystemStateMgr.cs 772 B

12345678910111213141516171819202122232425262728293031323334
  1. namespace Ryujinx.Core.OsHle
  2. {
  3. class SystemStateMgr
  4. {
  5. internal static string[] AudioOutputs = new string[]
  6. {
  7. "AudioTvOutput",
  8. "AudioStereoJackOutput",
  9. "AudioBuiltInSpeakerOutput"
  10. };
  11. public string ActiveAudioOutput { get; private set; }
  12. public SystemStateMgr()
  13. {
  14. SetAudioOutputAsBuiltInSpeaker();
  15. }
  16. public void SetAudioOutputAsTv()
  17. {
  18. ActiveAudioOutput = AudioOutputs[0];
  19. }
  20. public void SetAudioOutputAsStereoJack()
  21. {
  22. ActiveAudioOutput = AudioOutputs[1];
  23. }
  24. public void SetAudioOutputAsBuiltInSpeaker()
  25. {
  26. ActiveAudioOutput = AudioOutputs[2];
  27. }
  28. }
  29. }