diff options
| author | Mary-nyan <mary@mary.zone> | 2022-07-25 20:46:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-25 15:46:33 -0300 |
| commit | 1825bd87b4f0709ab79ed407f6c267ba3545456e (patch) | |
| tree | 3309fa4aea0cb8d17715a3ee5f5e04acd376681f /Ryujinx.Audio/Backends | |
| parent | 62f8ceb60b969db65a24d312dde7c6513a07ec46 (diff) | |
misc: Reformat Ryujinx.Audio with dotnet-format (#3485)
This is the first commit of a series of reformat around the codebase as
discussed internally some weeks ago.
This project being one that isn't touched that much, it shouldn't cause
conflict with any opened PRs.
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 |
