aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs')
-rw-r--r--Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs
index 1eedfa66..22919f1e 100644
--- a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs
+++ b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs
@@ -75,9 +75,12 @@ namespace Ryujinx.Audio.Backends.CompatLayer
return SampleFormat.PcmFloat;
}
- // TODO: Implement PCM24 conversion.
+ if (_realDriver.SupportsSampleFormat(SampleFormat.PcmInt24))
+ {
+ return SampleFormat.PcmInt24;
+ }
- // If nothing is truly supported, attempt PCM8 at the cost of loosing quality.
+ // If nothing is truly supported, attempt PCM8 at the cost of losing quality.
if (_realDriver.SupportsSampleFormat(SampleFormat.PcmInt8))
{
return SampleFormat.PcmInt8;