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/CompatLayer | |
| 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/CompatLayer')
3 files changed, 12 insertions, 12 deletions
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 |
