[HLE/Audio] Use correct audio device names
This commit is contained in:
parent
a8ba340dde
commit
2a985de88c
4 changed files with 88 additions and 18 deletions
34
Ryujinx.Core/OsHle/SystemStateMgr.cs
Normal file
34
Ryujinx.Core/OsHle/SystemStateMgr.cs
Normal file
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue