aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs
diff options
context:
space:
mode:
authormerry <git@mary.rs>2023-01-20 20:46:13 +0000
committerGitHub <noreply@github.com>2023-01-20 21:46:13 +0100
commit009e6bcd1b4d55f511fc947d2d029f3f68b50d5d (patch)
tree5fd5199a1973d3c5f5fe2e27135d432020ff5b89 /Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs
parenteb2cc159fa3632f19188b49908ac87625a0ae3cc (diff)
Audio: Implement PCM24 output (#4321)1.1.577
Diffstat (limited to 'Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs')
-rw-r--r--Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs
index ca6090fe..f22a7a69 100644
--- a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs
+++ b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs
@@ -58,10 +58,13 @@ namespace Ryujinx.Audio.Backends.CompatLayer
switch (realSampleFormat)
{
case SampleFormat.PcmInt8:
- PcmHelper.Convert(MemoryMarshal.Cast<byte, sbyte>(convertedSamples), samples);
+ PcmHelper.ConvertSampleToPcm8(MemoryMarshal.Cast<byte, sbyte>(convertedSamples), samples);
+ break;
+ case SampleFormat.PcmInt24:
+ PcmHelper.ConvertSampleToPcm24(convertedSamples, samples);
break;
case SampleFormat.PcmInt32:
- PcmHelper.Convert(MemoryMarshal.Cast<byte, int>(convertedSamples), samples);
+ PcmHelper.ConvertSampleToPcm32(MemoryMarshal.Cast<byte, int>(convertedSamples), samples);
break;
case SampleFormat.PcmFloat:
PcmHelper.ConvertSampleToPcmFloat(MemoryMarshal.Cast<byte, float>(convertedSamples), samples);