diff options
| author | Mary <me@thog.eu> | 2020-08-18 21:03:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-18 21:03:55 +0200 |
| commit | 5b26e4ef94afca8450f07c42393180e3c97f9c00 (patch) | |
| tree | 5c698591bd557711a487430ba06921b10ce53761 /Ryujinx.Audio/Native | |
| parent | a389dd59bd881cf2cff09a1f67f5c30de61123e6 (diff) | |
Misc audio fixes (#1348)
Changes:
Implement software surround downmixing (fix #796).
Fix a crash when no audio renderer were created when stopping emulation.
NOTE: This PR also disable support of 5.1 surround on the OpenAL backend as we cannot detect if the hardware directly support it. (the downmixing applied by OpenAL on Windows is terribly slow)
Diffstat (limited to 'Ryujinx.Audio/Native')
| -rw-r--r-- | Ryujinx.Audio/Native/libsoundio/SoundIODevice.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Audio/Native/libsoundio/SoundIODevice.cs b/Ryujinx.Audio/Native/libsoundio/SoundIODevice.cs index 81b78b67..dff945b6 100644 --- a/Ryujinx.Audio/Native/libsoundio/SoundIODevice.cs +++ b/Ryujinx.Audio/Native/libsoundio/SoundIODevice.cs @@ -197,6 +197,11 @@ namespace SoundIOSharp return Natives.soundio_device_supports_sample_rate (handle, sampleRate); } + public bool SupportsChannelCount(int channelCount) + { + return Natives.soundio_device_supports_layout(handle, SoundIOChannelLayout.GetDefault(channelCount).Handle); + } + public int GetNearestSampleRate (int sampleRate) { return Natives.soundio_device_nearest_sample_rate (handle, sampleRate); |
