diff options
Diffstat (limited to 'Ryujinx.Audio/Backends')
8 files changed, 17 insertions, 17 deletions
diff --git a/Ryujinx.Audio/Backends/Common/BackendHelper.cs b/Ryujinx.Audio/Backends/Common/BackendHelper.cs index 124d8364..30db340f 100644 --- a/Ryujinx.Audio/Backends/Common/BackendHelper.cs +++ b/Ryujinx.Audio/Backends/Common/BackendHelper.cs @@ -23,4 +23,4 @@ namespace Ryujinx.Audio.Backends.Common return bufferSize / GetSampleSize(format) / channelCount; } } -} +}
\ No newline at end of file diff --git a/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs b/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs index ce329e45..9bf20d4b 100644 --- a/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs +++ b/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs @@ -163,4 +163,4 @@ namespace Ryujinx.Audio.Backends.Common } } } -} +}
\ No newline at end of file diff --git a/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs b/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs index 39c46fdd..6fb3bee0 100644 --- a/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs +++ b/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs @@ -76,4 +76,4 @@ namespace Ryujinx.Audio.Backends.Common public virtual void UnregisterBuffer(AudioBuffer buffer) { } } -} +}
\ No newline at end of file diff --git a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs index c76628af..b6f45a3e 100644 --- a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs +++ b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs @@ -133,4 +133,4 @@ namespace Ryujinx.Audio.Backends.CompatLayer return direction == Direction.Input || direction == Direction.Output; } } -} +}
\ No newline at end of file diff --git a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs index 9e4728e5..ff3b0988 100644 --- a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs +++ b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs @@ -81,7 +81,7 @@ namespace Ryujinx.Audio.Backends.CompatLayer { BufferTag = buffer.BufferTag, DataPointer = buffer.DataPointer, - DataSize = (ulong)downmixedBuffer.Length + DataSize = (ulong)downmixedBuffer.Length }; bool result = _realSession.RegisterBuffer(fakeBuffer, downmixedBuffer); @@ -120,4 +120,4 @@ namespace Ryujinx.Audio.Backends.CompatLayer return _realSession.WasBufferFullyConsumed(buffer); } } -} +}
\ No newline at end of file diff --git a/Ryujinx.Audio/Backends/CompatLayer/Downmixing.cs b/Ryujinx.Audio/Backends/CompatLayer/Downmixing.cs index 08f92010..6959c158 100644 --- a/Ryujinx.Audio/Backends/CompatLayer/Downmixing.cs +++ b/Ryujinx.Audio/Backends/CompatLayer/Downmixing.cs @@ -24,11 +24,11 @@ namespace Ryujinx.Audio.Backends.CompatLayer public short Right; } - private const int Q15Bits = 16; - private const int RawQ15One = 1 << Q15Bits; - private const int RawQ15HalfOne = (int)(0.5f * RawQ15One); - private const int Minus3dBInQ15 = (int)(0.707f * RawQ15One); - private const int Minus6dBInQ15 = (int)(0.501f * RawQ15One); + private const int Q15Bits = 16; + private const int RawQ15One = 1 << Q15Bits; + private const int RawQ15HalfOne = (int)(0.5f * RawQ15One); + private const int Minus3dBInQ15 = (int)(0.707f * RawQ15One); + private const int Minus6dBInQ15 = (int)(0.501f * RawQ15One); private const int Minus12dBInQ15 = (int)(0.251f * RawQ15One); private static readonly int[] DefaultSurroundToStereoCoefficients = new int[4] @@ -46,8 +46,8 @@ namespace Ryujinx.Audio.Backends.CompatLayer }; private const int SurroundChannelCount = 6; - private const int StereoChannelCount = 2; - private const int MonoChannelCount = 1; + private const int StereoChannelCount = 2; + private const int MonoChannelCount = 1; [MethodImpl(MethodImplOptions.AggressiveInlining)] private static ReadOnlySpan<Channel51FormatPCM16> GetSurroundBuffer(ReadOnlySpan<short> data) @@ -86,7 +86,7 @@ namespace Ryujinx.Audio.Backends.CompatLayer { Channel51FormatPCM16 channel = channels[i]; - downmixedBuffer[i * 2] = DownMixSurroundToStereo(coefficients, channel.BackLeft, channel.LowFrequency, channel.FrontCenter, channel.FrontLeft); + downmixedBuffer[i * 2] = DownMixSurroundToStereo(coefficients, channel.BackLeft, channel.LowFrequency, channel.FrontCenter, channel.FrontLeft); downmixedBuffer[i * 2 + 1] = DownMixSurroundToStereo(coefficients, channel.BackRight, channel.LowFrequency, channel.FrontCenter, channel.FrontRight); } @@ -122,4 +122,4 @@ namespace Ryujinx.Audio.Backends.CompatLayer return DownMixSurroundToStereo(DefaultSurroundToStereoCoefficients, data); } } -} +}
\ No newline at end of file diff --git a/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceDriver.cs b/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceDriver.cs index b747c5c3..eecc95f5 100644 --- a/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceDriver.cs +++ b/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceDriver.cs @@ -84,4 +84,4 @@ namespace Ryujinx.Audio.Backends.Dummy return channelCount == 1 || channelCount == 2 || channelCount == 6; } } -} +}
\ No newline at end of file diff --git a/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceSessionInput.cs b/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceSessionInput.cs index 59247015..845713a1 100644 --- a/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceSessionInput.cs +++ b/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceSessionInput.cs @@ -64,4 +64,4 @@ namespace Ryujinx.Audio.Backends.Dummy return true; } } -} +}
\ No newline at end of file |
