audio: Cleanup Ryujinx.Audio and fix OpenAL issue (#1746)
* audio: Cleanup SoundIO and fix OpenAL issue * fix tabs by spaces * Fix extra spaces * Fix SoundIO.cs * Fix ContainsAudioOutBuffer
This commit is contained in:
parent
0108004691
commit
7b66cb0d90
25 changed files with 1459 additions and 1322 deletions
|
@ -13,17 +13,13 @@ namespace Ryujinx.Audio
|
|||
return targetChannelCount;
|
||||
}
|
||||
|
||||
switch (targetChannelCount)
|
||||
return targetChannelCount switch
|
||||
{
|
||||
case 6:
|
||||
return SelectHardwareChannelCount(2);
|
||||
case 2:
|
||||
return SelectHardwareChannelCount(1);
|
||||
case 1:
|
||||
throw new ArgumentException("No valid channel configuration found!");
|
||||
default:
|
||||
throw new ArgumentException($"Invalid targetChannelCount {targetChannelCount}");
|
||||
}
|
||||
6 => SelectHardwareChannelCount(2),
|
||||
2 => SelectHardwareChannelCount(1),
|
||||
1 => throw new ArgumentException("No valid channel configuration found!"),
|
||||
_ => throw new ArgumentException($"Invalid targetChannelCount {targetChannelCount}"),
|
||||
};
|
||||
}
|
||||
|
||||
int OpenTrack(int sampleRate, int channels, ReleaseCallback callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue