diff --git a/Ryujinx.Audio/AudioManager.cs b/Ryujinx.Audio/AudioManager.cs index 67a0d56b55..c37ca4a3d1 100644 --- a/Ryujinx.Audio/AudioManager.cs +++ b/Ryujinx.Audio/AudioManager.cs @@ -129,4 +129,4 @@ namespace Ryujinx.Audio } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Backends/Common/BackendHelper.cs b/Ryujinx.Audio/Backends/Common/BackendHelper.cs index 124d8364f6..30db340fa9 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 ce329e45c6..9bf20d4b55 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 39c46fddf1..6fb3bee029 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 c76628af0d..b6f45a3e58 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 9e4728e506..ff3b0988c4 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 08f9201040..6959c15883 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 GetSurroundBuffer(ReadOnlySpan 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 b747c5c31f..eecc95f55c 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 592470151a..845713a19b 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 diff --git a/Ryujinx.Audio/Common/AudioBuffer.cs b/Ryujinx.Audio/Common/AudioBuffer.cs index 87a7d5f32f..b79401b77e 100644 --- a/Ryujinx.Audio/Common/AudioBuffer.cs +++ b/Ryujinx.Audio/Common/AudioBuffer.cs @@ -34,4 +34,4 @@ namespace Ryujinx.Audio.Common /// public byte[] Data; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Common/AudioDeviceSession.cs b/Ryujinx.Audio/Common/AudioDeviceSession.cs index 3223407633..07b0a89886 100644 --- a/Ryujinx.Audio/Common/AudioDeviceSession.cs +++ b/Ryujinx.Audio/Common/AudioDeviceSession.cs @@ -513,4 +513,4 @@ namespace Ryujinx.Audio.Common } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Common/AudioDeviceState.cs b/Ryujinx.Audio/Common/AudioDeviceState.cs index 32745a2eff..b3f968da2a 100644 --- a/Ryujinx.Audio/Common/AudioDeviceState.cs +++ b/Ryujinx.Audio/Common/AudioDeviceState.cs @@ -15,4 +15,4 @@ namespace Ryujinx.Audio.Common /// Stopped } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Common/AudioInputConfiguration.cs b/Ryujinx.Audio/Common/AudioInputConfiguration.cs index 4da8e572cb..d3cfdd47be 100644 --- a/Ryujinx.Audio/Common/AudioInputConfiguration.cs +++ b/Ryujinx.Audio/Common/AudioInputConfiguration.cs @@ -26,4 +26,4 @@ namespace Ryujinx.Audio.Common /// private ushort _reserved; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Common/AudioOutputConfiguration.cs b/Ryujinx.Audio/Common/AudioOutputConfiguration.cs index 594f122508..e17e17576f 100644 --- a/Ryujinx.Audio/Common/AudioOutputConfiguration.cs +++ b/Ryujinx.Audio/Common/AudioOutputConfiguration.cs @@ -34,4 +34,4 @@ namespace Ryujinx.Audio.Common /// public AudioDeviceState AudioOutState; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Common/AudioUserBuffer.cs b/Ryujinx.Audio/Common/AudioUserBuffer.cs index bb71165ffc..50ab67fa3b 100644 --- a/Ryujinx.Audio/Common/AudioUserBuffer.cs +++ b/Ryujinx.Audio/Common/AudioUserBuffer.cs @@ -33,4 +33,4 @@ namespace Ryujinx.Audio.Common /// public ulong DataOffset; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Common/SampleFormat.cs b/Ryujinx.Audio/Common/SampleFormat.cs index a266ab44f1..901410a24c 100644 --- a/Ryujinx.Audio/Common/SampleFormat.cs +++ b/Ryujinx.Audio/Common/SampleFormat.cs @@ -40,4 +40,4 @@ namespace Ryujinx.Audio.Common /// Adpcm = 6 } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Constants.cs b/Ryujinx.Audio/Constants.cs index e8c06aa798..7d2ffa57bf 100644 --- a/Ryujinx.Audio/Constants.cs +++ b/Ryujinx.Audio/Constants.cs @@ -172,4 +172,4 @@ namespace Ryujinx.Audio 0.707f, }; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Input/AudioInputManager.cs b/Ryujinx.Audio/Input/AudioInputManager.cs index d9e50b7ee2..ac012c4a91 100644 --- a/Ryujinx.Audio/Input/AudioInputManager.cs +++ b/Ryujinx.Audio/Input/AudioInputManager.cs @@ -214,9 +214,9 @@ namespace Ryujinx.Audio.Input outputDeviceName = audioIn.DeviceName; outputConfiguration = new AudioOutputConfiguration { - ChannelCount = audioIn.ChannelCount, - SampleFormat = audioIn.SampleFormat, - SampleRate = audioIn.SampleRate, + ChannelCount = audioIn.ChannelCount, + SampleFormat = audioIn.SampleFormat, + SampleRate = audioIn.SampleRate, AudioOutState = audioIn.GetState(), }; @@ -263,4 +263,4 @@ namespace Ryujinx.Audio.Input } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Input/AudioInputSystem.cs b/Ryujinx.Audio/Input/AudioInputSystem.cs index 97b7ba3b38..b3ca0fd687 100644 --- a/Ryujinx.Audio/Input/AudioInputSystem.cs +++ b/Ryujinx.Audio/Input/AudioInputSystem.cs @@ -389,4 +389,4 @@ namespace Ryujinx.Audio.Input } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Integration/HardwareDeviceImpl.cs b/Ryujinx.Audio/Integration/HardwareDeviceImpl.cs index e95ca39020..552f1ab24b 100644 --- a/Ryujinx.Audio/Integration/HardwareDeviceImpl.cs +++ b/Ryujinx.Audio/Integration/HardwareDeviceImpl.cs @@ -32,8 +32,8 @@ namespace Ryujinx.Audio.Integration _session.QueueBuffer(new AudioBuffer { DataPointer = _currentBufferTag++, - Data = _buffer, - DataSize = (ulong)_buffer.Length, + Data = _buffer, + DataSize = (ulong)_buffer.Length, }); _currentBufferTag = _currentBufferTag % 4; @@ -72,4 +72,4 @@ namespace Ryujinx.Audio.Integration } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Integration/IHardwareDevice.cs b/Ryujinx.Audio/Integration/IHardwareDevice.cs index f9ade9dbcc..300de8c5d4 100644 --- a/Ryujinx.Audio/Integration/IHardwareDevice.cs +++ b/Ryujinx.Audio/Integration/IHardwareDevice.cs @@ -52,4 +52,4 @@ namespace Ryujinx.Audio.Integration return channelCount != Constants.ChannelCountMax; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Integration/IHardwareDeviceDriver.cs b/Ryujinx.Audio/Integration/IHardwareDeviceDriver.cs index 3930997f05..11de9f2374 100644 --- a/Ryujinx.Audio/Integration/IHardwareDeviceDriver.cs +++ b/Ryujinx.Audio/Integration/IHardwareDeviceDriver.cs @@ -31,4 +31,4 @@ namespace Ryujinx.Audio.Integration return this; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Integration/IHardwareDeviceSession.cs b/Ryujinx.Audio/Integration/IHardwareDeviceSession.cs index f29c109cb2..400daec005 100644 --- a/Ryujinx.Audio/Integration/IHardwareDeviceSession.cs +++ b/Ryujinx.Audio/Integration/IHardwareDeviceSession.cs @@ -25,4 +25,4 @@ namespace Ryujinx.Audio.Integration void PrepareToClose(); } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Integration/IWritableEvent.cs b/Ryujinx.Audio/Integration/IWritableEvent.cs index a3b3bc0bce..9a12e3d289 100644 --- a/Ryujinx.Audio/Integration/IWritableEvent.cs +++ b/Ryujinx.Audio/Integration/IWritableEvent.cs @@ -15,4 +15,4 @@ namespace Ryujinx.Audio.Integration /// void Clear(); } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Output/AudioOutputManager.cs b/Ryujinx.Audio/Output/AudioOutputManager.cs index 3e07e750fd..8c21f76a1c 100644 --- a/Ryujinx.Audio/Output/AudioOutputManager.cs +++ b/Ryujinx.Audio/Output/AudioOutputManager.cs @@ -209,9 +209,9 @@ namespace Ryujinx.Audio.Output outputDeviceName = audioOut.DeviceName; outputConfiguration = new AudioOutputConfiguration { - ChannelCount = audioOut.ChannelCount, - SampleFormat = audioOut.SampleFormat, - SampleRate = audioOut.SampleRate, + ChannelCount = audioOut.ChannelCount, + SampleFormat = audioOut.SampleFormat, + SampleRate = audioOut.SampleRate, AudioOutState = audioOut.GetState(), }; @@ -293,4 +293,4 @@ namespace Ryujinx.Audio.Output } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Output/AudioOutputSystem.cs b/Ryujinx.Audio/Output/AudioOutputSystem.cs index dc0006c2c2..93df87aab2 100644 --- a/Ryujinx.Audio/Output/AudioOutputSystem.cs +++ b/Ryujinx.Audio/Output/AudioOutputSystem.cs @@ -169,7 +169,7 @@ namespace Ryujinx.Audio.Output } SampleFormat = sampleFormat; - SampleRate = Constants.TargetSampleRate; + SampleRate = Constants.TargetSampleRate; } return result; @@ -187,9 +187,9 @@ namespace Ryujinx.Audio.Output { AudioBuffer buffer = new AudioBuffer { - BufferTag = bufferTag, + BufferTag = bufferTag, DataPointer = userBuffer.Data, - DataSize = userBuffer.DataSize + DataSize = userBuffer.DataSize }; if (_session.AppendBuffer(buffer)) @@ -291,7 +291,7 @@ namespace Ryujinx.Audio.Output { lock (_parentLock) { - _session.SetVolume(volume); + _session.SetVolume(volume); } } @@ -362,4 +362,4 @@ namespace Ryujinx.Audio.Output } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/AuxiliaryBufferAddresses.cs b/Ryujinx.Audio/Renderer/Common/AuxiliaryBufferAddresses.cs index b7b97d5d8e..966474052b 100644 --- a/Ryujinx.Audio/Renderer/Common/AuxiliaryBufferAddresses.cs +++ b/Ryujinx.Audio/Renderer/Common/AuxiliaryBufferAddresses.cs @@ -10,4 +10,4 @@ namespace Ryujinx.Audio.Renderer.Common public ulong ReturnBufferInfo; public ulong ReturnBufferInfoBase; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/BehaviourParameter.cs b/Ryujinx.Audio/Renderer/Common/BehaviourParameter.cs index 0255888304..270f84d5bc 100644 --- a/Ryujinx.Audio/Renderer/Common/BehaviourParameter.cs +++ b/Ryujinx.Audio/Renderer/Common/BehaviourParameter.cs @@ -47,4 +47,4 @@ namespace Ryujinx.Audio.Renderer.Common public ulong ExtraErrorInfo; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/EdgeMatrix.cs b/Ryujinx.Audio/Renderer/Common/EdgeMatrix.cs index 3beb623998..24a9350fc2 100644 --- a/Ryujinx.Audio/Renderer/Common/EdgeMatrix.cs +++ b/Ryujinx.Audio/Renderer/Common/EdgeMatrix.cs @@ -147,4 +147,4 @@ namespace Ryujinx.Audio.Renderer.Common return _nodeCount; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/EffectType.cs b/Ryujinx.Audio/Renderer/Common/EffectType.cs index 63e51ea682..2c50b9eb0d 100644 --- a/Ryujinx.Audio/Renderer/Common/EffectType.cs +++ b/Ryujinx.Audio/Renderer/Common/EffectType.cs @@ -50,4 +50,4 @@ namespace Ryujinx.Audio.Renderer.Common /// CaptureBuffer } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/MemoryPoolUserState.cs b/Ryujinx.Audio/Renderer/Common/MemoryPoolUserState.cs index 12fb942743..590731c3bf 100644 --- a/Ryujinx.Audio/Renderer/Common/MemoryPoolUserState.cs +++ b/Ryujinx.Audio/Renderer/Common/MemoryPoolUserState.cs @@ -40,4 +40,4 @@ namespace Ryujinx.Audio.Renderer.Common /// Released = 6 } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/NodeIdHelper.cs b/Ryujinx.Audio/Renderer/Common/NodeIdHelper.cs index 76fba54b66..a999e3ad1c 100644 --- a/Ryujinx.Audio/Renderer/Common/NodeIdHelper.cs +++ b/Ryujinx.Audio/Renderer/Common/NodeIdHelper.cs @@ -25,4 +25,4 @@ namespace Ryujinx.Audio.Renderer.Common return (nodeId >> 16) & 0xFFF; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/NodeIdType.cs b/Ryujinx.Audio/Renderer/Common/NodeIdType.cs index 26c24ce41c..69b58f6bcc 100644 --- a/Ryujinx.Audio/Renderer/Common/NodeIdType.cs +++ b/Ryujinx.Audio/Renderer/Common/NodeIdType.cs @@ -30,4 +30,4 @@ namespace Ryujinx.Audio.Renderer.Common /// Performance = 15 } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/NodeStates.cs b/Ryujinx.Audio/Renderer/Common/NodeStates.cs index 8ed61fb2e2..45748d606f 100644 --- a/Ryujinx.Audio/Renderer/Common/NodeStates.cs +++ b/Ryujinx.Audio/Renderer/Common/NodeStates.cs @@ -226,4 +226,4 @@ namespace Ryujinx.Audio.Renderer.Common return true; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/PerformanceDetailType.cs b/Ryujinx.Audio/Renderer/Common/PerformanceDetailType.cs index 83cbd5d68a..8467ed8d73 100644 --- a/Ryujinx.Audio/Renderer/Common/PerformanceDetailType.cs +++ b/Ryujinx.Audio/Renderer/Common/PerformanceDetailType.cs @@ -16,4 +16,4 @@ namespace Ryujinx.Audio.Renderer.Common Limiter, CaptureBuffer } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/PerformanceEntryType.cs b/Ryujinx.Audio/Renderer/Common/PerformanceEntryType.cs index e7ce0557a2..bde72aaed5 100644 --- a/Ryujinx.Audio/Renderer/Common/PerformanceEntryType.cs +++ b/Ryujinx.Audio/Renderer/Common/PerformanceEntryType.cs @@ -8,4 +8,4 @@ namespace Ryujinx.Audio.Renderer.Common FinalMix, Sink } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/PlayState.cs b/Ryujinx.Audio/Renderer/Common/PlayState.cs index 3ae1937471..4a6929e038 100644 --- a/Ryujinx.Audio/Renderer/Common/PlayState.cs +++ b/Ryujinx.Audio/Renderer/Common/PlayState.cs @@ -20,4 +20,4 @@ namespace Ryujinx.Audio.Renderer.Common /// Pause } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/ReverbEarlyMode.cs b/Ryujinx.Audio/Renderer/Common/ReverbEarlyMode.cs index 969f4fe7ef..aa7685621c 100644 --- a/Ryujinx.Audio/Renderer/Common/ReverbEarlyMode.cs +++ b/Ryujinx.Audio/Renderer/Common/ReverbEarlyMode.cs @@ -30,4 +30,4 @@ namespace Ryujinx.Audio.Renderer.Common /// Disabled } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/ReverbLateMode.cs b/Ryujinx.Audio/Renderer/Common/ReverbLateMode.cs index 592585b0f7..8aa88165ad 100644 --- a/Ryujinx.Audio/Renderer/Common/ReverbLateMode.cs +++ b/Ryujinx.Audio/Renderer/Common/ReverbLateMode.cs @@ -35,4 +35,4 @@ namespace Ryujinx.Audio.Renderer.Common /// Limit = NoDelay } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/SinkType.cs b/Ryujinx.Audio/Renderer/Common/SinkType.cs index 7d7a36076a..2e17201e74 100644 --- a/Ryujinx.Audio/Renderer/Common/SinkType.cs +++ b/Ryujinx.Audio/Renderer/Common/SinkType.cs @@ -20,4 +20,4 @@ namespace Ryujinx.Audio.Renderer.Common /// CircularBuffer } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/UpdateDataHeader.cs b/Ryujinx.Audio/Renderer/Common/UpdateDataHeader.cs index df08555757..70dbfa947c 100644 --- a/Ryujinx.Audio/Renderer/Common/UpdateDataHeader.cs +++ b/Ryujinx.Audio/Renderer/Common/UpdateDataHeader.cs @@ -30,4 +30,4 @@ namespace Ryujinx.Audio.Renderer.Common TotalSize = (uint)Unsafe.SizeOf(); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/VoiceUpdateState.cs b/Ryujinx.Audio/Renderer/Common/VoiceUpdateState.cs index 608381af11..f52c2f4c4a 100644 --- a/Ryujinx.Audio/Renderer/Common/VoiceUpdateState.cs +++ b/Ryujinx.Audio/Renderer/Common/VoiceUpdateState.cs @@ -101,4 +101,4 @@ namespace Ryujinx.Audio.Renderer.Common } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/WaveBuffer.cs b/Ryujinx.Audio/Renderer/Common/WaveBuffer.cs index 9c38fa48ab..0d00e8384a 100644 --- a/Ryujinx.Audio/Renderer/Common/WaveBuffer.cs +++ b/Ryujinx.Audio/Renderer/Common/WaveBuffer.cs @@ -79,4 +79,4 @@ namespace Ryujinx.Audio.Renderer.Common /// private ushort _padding; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs b/Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs index e1b4e352ea..922ce4e388 100644 --- a/Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs +++ b/Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs @@ -41,7 +41,7 @@ namespace Ryujinx.Audio.Renderer.Common return Memory.Empty; } - public Memory Allocate(ulong count, int align) where T: unmanaged + public Memory Allocate(ulong count, int align) where T : unmanaged { Memory allocatedMemory = Allocate((ulong)Unsafe.SizeOf() * count, align); @@ -53,9 +53,9 @@ namespace Ryujinx.Audio.Renderer.Common return SpanMemoryManager.Cast(allocatedMemory); } - public static ulong GetTargetSize(ulong currentSize, ulong count, int align) where T: unmanaged + public static ulong GetTargetSize(ulong currentSize, ulong count, int align) where T : unmanaged { return BitUtils.AlignUp(currentSize, align) + (ulong)Unsafe.SizeOf() * count; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Device/VirtualDevice.cs b/Ryujinx.Audio/Renderer/Device/VirtualDevice.cs index 8784cc63e8..2fa030a8f7 100644 --- a/Ryujinx.Audio/Renderer/Device/VirtualDevice.cs +++ b/Ryujinx.Audio/Renderer/Device/VirtualDevice.cs @@ -86,4 +86,4 @@ namespace Ryujinx.Audio.Renderer.Device return Name; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Device/VirtualDeviceSession.cs b/Ryujinx.Audio/Renderer/Device/VirtualDeviceSession.cs index 09fa71edaf..db35d26d28 100644 --- a/Ryujinx.Audio/Renderer/Device/VirtualDeviceSession.cs +++ b/Ryujinx.Audio/Renderer/Device/VirtualDeviceSession.cs @@ -24,4 +24,4 @@ namespace Ryujinx.Audio.Renderer.Device Device = virtualDevice; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Device/VirtualDeviceSessionRegistry.cs b/Ryujinx.Audio/Renderer/Device/VirtualDeviceSessionRegistry.cs index 85bb03fe54..927e45add9 100644 --- a/Ryujinx.Audio/Renderer/Device/VirtualDeviceSessionRegistry.cs +++ b/Ryujinx.Audio/Renderer/Device/VirtualDeviceSessionRegistry.cs @@ -59,4 +59,4 @@ namespace Ryujinx.Audio.Renderer.Device return virtualDeviceSession; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/AdpcmHelper.cs b/Ryujinx.Audio/Renderer/Dsp/AdpcmHelper.cs index a7c4ebac21..f6638a9af3 100644 --- a/Ryujinx.Audio/Renderer/Dsp/AdpcmHelper.cs +++ b/Ryujinx.Audio/Renderer/Dsp/AdpcmHelper.cs @@ -199,4 +199,4 @@ namespace Ryujinx.Audio.Renderer.Dsp return decodedCount; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/AudioProcessor.cs b/Ryujinx.Audio/Renderer/Dsp/AudioProcessor.cs index 5e89899bcf..2f58957d75 100644 --- a/Ryujinx.Audio/Renderer/Dsp/AudioProcessor.cs +++ b/Ryujinx.Audio/Renderer/Dsp/AudioProcessor.cs @@ -268,4 +268,4 @@ namespace Ryujinx.Audio.Renderer.Dsp } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/BiquadFilterHelper.cs b/Ryujinx.Audio/Renderer/Dsp/BiquadFilterHelper.cs index 1a51a1fbdf..98460ff1a6 100644 --- a/Ryujinx.Audio/Renderer/Dsp/BiquadFilterHelper.cs +++ b/Ryujinx.Audio/Renderer/Dsp/BiquadFilterHelper.cs @@ -80,4 +80,4 @@ namespace Ryujinx.Audio.Renderer.Dsp } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/AdpcmDataSourceCommandVersion1.cs b/Ryujinx.Audio/Renderer/Dsp/Command/AdpcmDataSourceCommandVersion1.cs index a211389264..1ad629f49c 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/AdpcmDataSourceCommandVersion1.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/AdpcmDataSourceCommandVersion1.cs @@ -72,4 +72,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command DataSourceHelper.ProcessWaveBuffers(context.MemoryManager, outputBuffer, ref info, WaveBuffers, ref State.Span[0], context.SampleRate, (int)context.SampleCount); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/AuxiliaryBufferCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/AuxiliaryBufferCommand.cs index fc21c86b20..cfa5400c12 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/AuxiliaryBufferCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/AuxiliaryBufferCommand.cs @@ -170,4 +170,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/BiquadFilterCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/BiquadFilterCommand.cs index 4ddfc6eee4..d68f3defc9 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/BiquadFilterCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/BiquadFilterCommand.cs @@ -49,4 +49,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command BiquadFilterHelper.ProcessBiquadFilter(ref _parameter, ref state, outputBuffer, inputBuffer, context.SampleCount); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/CaptureBufferCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/CaptureBufferCommand.cs index af4a938654..e9f7f94315 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/CaptureBufferCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/CaptureBufferCommand.cs @@ -134,4 +134,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/CircularBufferSinkCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/CircularBufferSinkCommand.cs index b179b50d85..95aec99de8 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/CircularBufferSinkCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/CircularBufferSinkCommand.cs @@ -74,4 +74,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/ClearMixBufferCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/ClearMixBufferCommand.cs index 6ccc69dd0e..c3530db1aa 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/ClearMixBufferCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/ClearMixBufferCommand.cs @@ -21,4 +21,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command context.ClearBuffers(); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/CommandList.cs b/Ryujinx.Audio/Renderer/Dsp/Command/CommandList.cs index 64e8f4dad6..e8c3ba24d0 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/CommandList.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/CommandList.cs @@ -153,4 +153,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command _buffersMemoryHandle.Dispose(); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/CommandType.cs b/Ryujinx.Audio/Renderer/Dsp/Command/CommandType.cs index 83ea386e02..dfe7f8862f 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/CommandType.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/CommandType.cs @@ -33,4 +33,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command GroupedBiquadFilter, CaptureBuffer } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/CopyMixBufferCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/CopyMixBufferCommand.cs index f5f8352697..330b63a65c 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/CopyMixBufferCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/CopyMixBufferCommand.cs @@ -29,4 +29,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command context.CopyBuffer(OutputBufferIndex, InputBufferIndex); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/DataSourceVersion2Command.cs b/Ryujinx.Audio/Renderer/Dsp/Command/DataSourceVersion2Command.cs index f5cc36598c..f602262e3e 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/DataSourceVersion2Command.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/DataSourceVersion2Command.cs @@ -105,4 +105,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command DataSourceHelper.ProcessWaveBuffers(context.MemoryManager, outputBuffer, ref info, WaveBuffers, ref State.Span[0], context.SampleRate, (int)context.SampleCount); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs index cb4681995d..8f11da9582 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs @@ -87,7 +87,7 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command float dryGain = FixedPointHelper.ToFloat(Parameter.DryGain, FixedPointPrecision); float outGain = FixedPointHelper.ToFloat(Parameter.OutGain, FixedPointPrecision); - Matrix2x2 delayFeedback = new Matrix2x2(delayFeedbackBaseGain , delayFeedbackCrossGain, + Matrix2x2 delayFeedback = new Matrix2x2(delayFeedbackBaseGain, delayFeedbackCrossGain, delayFeedbackCrossGain, delayFeedbackBaseGain); for (int i = 0; i < sampleCount; i++) @@ -124,10 +124,10 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command float dryGain = FixedPointHelper.ToFloat(Parameter.DryGain, FixedPointPrecision); float outGain = FixedPointHelper.ToFloat(Parameter.OutGain, FixedPointPrecision); - Matrix4x4 delayFeedback = new Matrix4x4(delayFeedbackBaseGain , delayFeedbackCrossGain, delayFeedbackCrossGain, 0.0f, - delayFeedbackCrossGain, delayFeedbackBaseGain , 0.0f , delayFeedbackCrossGain, - delayFeedbackCrossGain, 0.0f , delayFeedbackBaseGain , delayFeedbackCrossGain, - 0.0f , delayFeedbackCrossGain, delayFeedbackCrossGain, delayFeedbackBaseGain); + Matrix4x4 delayFeedback = new Matrix4x4(delayFeedbackBaseGain, delayFeedbackCrossGain, delayFeedbackCrossGain, 0.0f, + delayFeedbackCrossGain, delayFeedbackBaseGain, 0.0f, delayFeedbackCrossGain, + delayFeedbackCrossGain, 0.0f, delayFeedbackBaseGain, delayFeedbackCrossGain, + 0.0f, delayFeedbackCrossGain, delayFeedbackCrossGain, delayFeedbackBaseGain); for (int i = 0; i < sampleCount; i++) @@ -149,7 +149,7 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command }; Vector4 temp = MatrixHelper.Transform(ref channelInput, ref delayFeedback) + channelInput * inGain; - + state.UpdateLowPassFilter(ref Unsafe.As(ref temp), channelCount); *((float*)outputBuffers[0] + i) = (channelInput.X * dryGain + delayLineValues.X * outGain) / 64; @@ -171,12 +171,12 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command float dryGain = FixedPointHelper.ToFloat(Parameter.DryGain, FixedPointPrecision); float outGain = FixedPointHelper.ToFloat(Parameter.OutGain, FixedPointPrecision); - Matrix6x6 delayFeedback = new Matrix6x6(delayFeedbackBaseGain , 0.0f , 0.0f , 0.0f , delayFeedbackCrossGain, delayFeedbackCrossGain, - 0.0f , delayFeedbackBaseGain , 0.0f , delayFeedbackCrossGain, delayFeedbackCrossGain, 0.0f , - delayFeedbackCrossGain, 0.0f , delayFeedbackBaseGain , delayFeedbackCrossGain, 0.0f , 0.0f , - 0.0f , delayFeedbackCrossGain, delayFeedbackCrossGain, delayFeedbackBaseGain , 0.0f , 0.0f , - delayFeedbackCrossGain, delayFeedbackCrossGain, 0.0f , 0.0f , delayFeedbackBaseGain , 0.0f , - 0.0f , 0.0f , 0.0f , 0.0f , 0.0f , feedbackGain); + Matrix6x6 delayFeedback = new Matrix6x6(delayFeedbackBaseGain, 0.0f, 0.0f, 0.0f, delayFeedbackCrossGain, delayFeedbackCrossGain, + 0.0f, delayFeedbackBaseGain, 0.0f, delayFeedbackCrossGain, delayFeedbackCrossGain, 0.0f, + delayFeedbackCrossGain, 0.0f, delayFeedbackBaseGain, delayFeedbackCrossGain, 0.0f, 0.0f, + 0.0f, delayFeedbackCrossGain, delayFeedbackCrossGain, delayFeedbackBaseGain, 0.0f, 0.0f, + delayFeedbackCrossGain, delayFeedbackCrossGain, 0.0f, 0.0f, delayFeedbackBaseGain, 0.0f, + 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, feedbackGain); for (int i = 0; i < sampleCount; i++) { @@ -277,4 +277,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command ProcessDelay(context, ref state); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/DepopForMixBuffersCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/DepopForMixBuffersCommand.cs index 38fc512790..eb446a2b2f 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/DepopForMixBuffersCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/DepopForMixBuffersCommand.cs @@ -90,4 +90,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/DepopPrepareCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/DepopPrepareCommand.cs index 29e1399399..1e37ff7150 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/DepopPrepareCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/DepopPrepareCommand.cs @@ -54,4 +54,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/DeviceSinkCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/DeviceSinkCommand.cs index cd3d3f3c2a..a34fbc562c 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/DeviceSinkCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/DeviceSinkCommand.cs @@ -88,4 +88,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/DownMixSurroundToStereoCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/DownMixSurroundToStereoCommand.cs index 23fb60b95b..d75da6f9fa 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/DownMixSurroundToStereoCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/DownMixSurroundToStereoCommand.cs @@ -65,4 +65,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command context.ClearBuffer(OutputBufferIndices[5]); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/GroupedBiquadFilterCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/GroupedBiquadFilterCommand.cs index 7f83c75ebd..ae1ab12c56 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/GroupedBiquadFilterCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/GroupedBiquadFilterCommand.cs @@ -60,4 +60,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/ICommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/ICommand.cs index 5c956b8907..dddd2511ea 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/ICommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/ICommand.cs @@ -17,4 +17,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command return false; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion1.cs b/Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion1.cs index c50ff6ea23..98394a09c1 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion1.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion1.cs @@ -143,4 +143,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion2.cs b/Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion2.cs index 79aeb74024..ebc2eb1b27 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion2.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion2.cs @@ -162,4 +162,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/MixCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/MixCommand.cs index da869ffc2b..d50309964a 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/MixCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/MixCommand.cs @@ -134,4 +134,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command ProcessMix(outputBuffer, inputBuffer); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs index e6fc1b67c0..06af9f6fa7 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs @@ -65,4 +65,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command State.Span[0].LastSamples[LastSampleIndex] = ProcessMixRamp(outputBuffer, inputBuffer, (int)context.SampleCount); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/MixRampGroupedCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/MixRampGroupedCommand.cs index 6d09ffa70b..97bb0f508f 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/MixRampGroupedCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/MixRampGroupedCommand.cs @@ -88,4 +88,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/PcmFloatDataSourceCommandVersion1.cs b/Ryujinx.Audio/Renderer/Dsp/Command/PcmFloatDataSourceCommandVersion1.cs index 483f4254af..7c48a511cc 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/PcmFloatDataSourceCommandVersion1.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/PcmFloatDataSourceCommandVersion1.cs @@ -71,4 +71,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command DataSourceHelper.ProcessWaveBuffers(context.MemoryManager, outputBuffer, ref info, WaveBuffers, ref State.Span[0], context.SampleRate, (int)context.SampleCount); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/PcmInt16DataSourceCommandVersion1.cs b/Ryujinx.Audio/Renderer/Dsp/Command/PcmInt16DataSourceCommandVersion1.cs index e6bb2f76a8..8483f6d416 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/PcmInt16DataSourceCommandVersion1.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/PcmInt16DataSourceCommandVersion1.cs @@ -71,4 +71,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command DataSourceHelper.ProcessWaveBuffers(context.MemoryManager, outputBuffer, ref info, WaveBuffers, ref State.Span[0], context.SampleRate, (int)context.SampleCount); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs index 232f58e4ab..c2f94474d2 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs @@ -44,4 +44,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/Reverb3dCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/Reverb3dCommand.cs index dfd706f902..04809245f8 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/Reverb3dCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/Reverb3dCommand.cs @@ -251,4 +251,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command ProcessReverb3d(context, ref state); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/ReverbCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/ReverbCommand.cs index 0668418640..130706d10c 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/ReverbCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/ReverbCommand.cs @@ -276,4 +276,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command ProcessReverb(context, ref state); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/UpsampleCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/UpsampleCommand.cs index 6502e09f40..0056ac5c53 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/UpsampleCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/UpsampleCommand.cs @@ -66,4 +66,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/VolumeCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/VolumeCommand.cs index d75e07a4ff..e294789116 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/VolumeCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/VolumeCommand.cs @@ -134,4 +134,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command ProcessVolume(outputBuffer, inputBuffer); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/VolumeRampCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/VolumeRampCommand.cs index 092a4df978..ffda8b1a0a 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/VolumeRampCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/VolumeRampCommand.cs @@ -53,4 +53,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command ProcessVolumeRamp(outputBuffer, inputBuffer, (int)context.SampleCount); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs b/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs index 58d3db203a..eda5732611 100644 --- a/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs +++ b/Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs @@ -463,4 +463,4 @@ namespace Ryujinx.Audio.Renderer.Dsp } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Effect/DecayDelay.cs b/Ryujinx.Audio/Renderer/Dsp/Effect/DecayDelay.cs index 7253fdc92a..37e066bf03 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Effect/DecayDelay.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Effect/DecayDelay.cs @@ -49,4 +49,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Effect return _delayLine.Tap(sampleIndex); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Effect/DelayLine.cs b/Ryujinx.Audio/Renderer/Dsp/Effect/DelayLine.cs index 2b56640895..56890ebe8f 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Effect/DelayLine.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Effect/DelayLine.cs @@ -75,4 +75,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Effect return TapUnsafe(sampleIndex, -1); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Effect/DelayLineReverb3d.cs b/Ryujinx.Audio/Renderer/Dsp/Effect/DelayLineReverb3d.cs index 30096f0e76..a2ac9d265c 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Effect/DelayLineReverb3d.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Effect/DelayLineReverb3d.cs @@ -73,4 +73,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Effect return TapUnsafe(sampleIndex, -1); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/Effect/IDelayLine.cs b/Ryujinx.Audio/Renderer/Dsp/Effect/IDelayLine.cs index b408e294dc..fd902525e3 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Effect/IDelayLine.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Effect/IDelayLine.cs @@ -34,4 +34,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Effect return (uint)MathF.Round(sampleRate * delayTime); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/FixedPointHelper.cs b/Ryujinx.Audio/Renderer/Dsp/FixedPointHelper.cs index a618c1c18e..0d0ff2ae63 100644 --- a/Ryujinx.Audio/Renderer/Dsp/FixedPointHelper.cs +++ b/Ryujinx.Audio/Renderer/Dsp/FixedPointHelper.cs @@ -30,4 +30,4 @@ namespace Ryujinx.Audio.Renderer.Dsp return ToInt(value + half, qBits); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/FloatingPointHelper.cs b/Ryujinx.Audio/Renderer/Dsp/FloatingPointHelper.cs index 2b4ab95fa2..226def46a6 100644 --- a/Ryujinx.Audio/Renderer/Dsp/FloatingPointHelper.cs +++ b/Ryujinx.Audio/Renderer/Dsp/FloatingPointHelper.cs @@ -64,4 +64,4 @@ namespace Ryujinx.Audio.Renderer.Dsp return MathF.Sin(DegreesToRadians(value)); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/PcmHelper.cs b/Ryujinx.Audio/Renderer/Dsp/PcmHelper.cs index f2453f17ee..1eec3e4158 100644 --- a/Ryujinx.Audio/Renderer/Dsp/PcmHelper.cs +++ b/Ryujinx.Audio/Renderer/Dsp/PcmHelper.cs @@ -75,4 +75,4 @@ namespace Ryujinx.Audio.Renderer.Dsp return (short)value; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/ResamplerHelper.cs b/Ryujinx.Audio/Renderer/Dsp/ResamplerHelper.cs index 454e873543..4de2e078a9 100644 --- a/Ryujinx.Audio/Renderer/Dsp/ResamplerHelper.cs +++ b/Ryujinx.Audio/Renderer/Dsp/ResamplerHelper.cs @@ -627,4 +627,4 @@ namespace Ryujinx.Audio.Renderer.Dsp } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/State/AdpcmLoopContext.cs b/Ryujinx.Audio/Renderer/Dsp/State/AdpcmLoopContext.cs index f9ef201f26..821a135efd 100644 --- a/Ryujinx.Audio/Renderer/Dsp/State/AdpcmLoopContext.cs +++ b/Ryujinx.Audio/Renderer/Dsp/State/AdpcmLoopContext.cs @@ -9,4 +9,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State public short History0; public short History1; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/State/AuxiliaryBufferHeader.cs b/Ryujinx.Audio/Renderer/Dsp/State/AuxiliaryBufferHeader.cs index 97bbc80cc0..4e8d11e4c8 100644 --- a/Ryujinx.Audio/Renderer/Dsp/State/AuxiliaryBufferHeader.cs +++ b/Ryujinx.Audio/Renderer/Dsp/State/AuxiliaryBufferHeader.cs @@ -71,4 +71,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State public AuxiliaryBufferInfo CpuBufferInfo; public AuxiliaryBufferInfo DspBufferInfo; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/State/BiquadFilterState.cs b/Ryujinx.Audio/Renderer/Dsp/State/BiquadFilterState.cs index f9a32b3f99..4220e6d51d 100644 --- a/Ryujinx.Audio/Renderer/Dsp/State/BiquadFilterState.cs +++ b/Ryujinx.Audio/Renderer/Dsp/State/BiquadFilterState.cs @@ -10,4 +10,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State public float State2; public float State3; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/State/DelayState.cs b/Ryujinx.Audio/Renderer/Dsp/State/DelayState.cs index c56fa078a4..2a1e7f834a 100644 --- a/Ryujinx.Audio/Renderer/Dsp/State/DelayState.cs +++ b/Ryujinx.Audio/Renderer/Dsp/State/DelayState.cs @@ -64,4 +64,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/State/LimiterState.cs b/Ryujinx.Audio/Renderer/Dsp/State/LimiterState.cs index 0ac0a29c4b..92ed13ffff 100644 --- a/Ryujinx.Audio/Renderer/Dsp/State/LimiterState.cs +++ b/Ryujinx.Audio/Renderer/Dsp/State/LimiterState.cs @@ -25,6 +25,6 @@ namespace Ryujinx.Audio.Renderer.Dsp.State UpdateParameter(ref parameter); } - public void UpdateParameter(ref LimiterParameter parameter) {} + public void UpdateParameter(ref LimiterParameter parameter) { } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/State/Reverb3dState.cs b/Ryujinx.Audio/Renderer/Dsp/State/Reverb3dState.cs index d4641b4433..c064660318 100644 --- a/Ryujinx.Audio/Renderer/Dsp/State/Reverb3dState.cs +++ b/Ryujinx.Audio/Renderer/Dsp/State/Reverb3dState.cs @@ -116,4 +116,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Dsp/State/ReverbState.cs b/Ryujinx.Audio/Renderer/Dsp/State/ReverbState.cs index 878fb2f1d1..1ffabe05c1 100644 --- a/Ryujinx.Audio/Renderer/Dsp/State/ReverbState.cs +++ b/Ryujinx.Audio/Renderer/Dsp/State/ReverbState.cs @@ -201,4 +201,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/AudioRendererConfiguration.cs b/Ryujinx.Audio/Renderer/Parameter/AudioRendererConfiguration.cs index d3697bee29..359cd4c022 100644 --- a/Ryujinx.Audio/Renderer/Parameter/AudioRendererConfiguration.cs +++ b/Ryujinx.Audio/Renderer/Parameter/AudioRendererConfiguration.cs @@ -96,4 +96,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// public int Revision; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/BehaviourErrorInfoOutStatus.cs b/Ryujinx.Audio/Renderer/Parameter/BehaviourErrorInfoOutStatus.cs index 5a0565dc61..aba7dcd611 100644 --- a/Ryujinx.Audio/Renderer/Parameter/BehaviourErrorInfoOutStatus.cs +++ b/Ryujinx.Audio/Renderer/Parameter/BehaviourErrorInfoOutStatus.cs @@ -27,4 +27,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// private unsafe fixed uint _reserved[3]; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/BiquadFilterParameter.cs b/Ryujinx.Audio/Renderer/Parameter/BiquadFilterParameter.cs index 697583b1fd..ef86015fe6 100644 --- a/Ryujinx.Audio/Renderer/Parameter/BiquadFilterParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/BiquadFilterParameter.cs @@ -31,4 +31,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// a0 = 1 public Array2 Denominator; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Effect/AuxiliaryBufferParameter.cs b/Ryujinx.Audio/Renderer/Parameter/Effect/AuxiliaryBufferParameter.cs index 65f265a32a..36f2867753 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Effect/AuxiliaryBufferParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Effect/AuxiliaryBufferParameter.cs @@ -81,4 +81,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Effect /// This is unused. public uint MixBufferSampleCount; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Effect/BiquadFilterEffectParameter.cs b/Ryujinx.Audio/Renderer/Parameter/Effect/BiquadFilterEffectParameter.cs index b12a941a5a..73e0e9bbc6 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Effect/BiquadFilterEffectParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Effect/BiquadFilterEffectParameter.cs @@ -41,4 +41,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Effect /// public UsageState Status; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Effect/BufferMixerParameter.cs b/Ryujinx.Audio/Renderer/Parameter/Effect/BufferMixerParameter.cs index 49b70e501a..b03559ebac 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Effect/BufferMixerParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Effect/BufferMixerParameter.cs @@ -29,4 +29,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Effect /// public uint MixesCount; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Effect/DelayParameter.cs b/Ryujinx.Audio/Renderer/Parameter/Effect/DelayParameter.cs index a55f6748f0..72332c170f 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Effect/DelayParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Effect/DelayParameter.cs @@ -98,4 +98,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Effect return EffectInParameterVersion1.IsChannelCountValid(ChannelCountMax); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Effect/LimiterParameter.cs b/Ryujinx.Audio/Renderer/Parameter/Effect/LimiterParameter.cs index 0c4b8a64ed..0bce94a27d 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Effect/LimiterParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Effect/LimiterParameter.cs @@ -135,4 +135,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Effect return EffectInParameterVersion1.IsChannelCountValid(ChannelCountMax); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Effect/LimiterStatistics.cs b/Ryujinx.Audio/Renderer/Parameter/Effect/LimiterStatistics.cs index 969b2e2dc5..af4c02f2c1 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Effect/LimiterStatistics.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Effect/LimiterStatistics.cs @@ -28,4 +28,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Effect CompressionGainMin.ToSpan().Fill(1.0f); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Effect/Reverb3dParameter.cs b/Ryujinx.Audio/Renderer/Parameter/Effect/Reverb3dParameter.cs index 23574a785b..c78ce59513 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Effect/Reverb3dParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Effect/Reverb3dParameter.cs @@ -124,4 +124,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Effect return EffectInParameterVersion1.IsChannelCountValid(ChannelCountMax); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Effect/ReverbParameter.cs b/Ryujinx.Audio/Renderer/Parameter/Effect/ReverbParameter.cs index f61d105bf4..baf049fbd0 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Effect/ReverbParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Effect/ReverbParameter.cs @@ -116,4 +116,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Effect return EffectInParameterVersion1.IsChannelCountValid(ChannelCountMax); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/EffectInParameterVersion1.cs b/Ryujinx.Audio/Renderer/Parameter/EffectInParameterVersion1.cs index 95bc342248..e5419f70af 100644 --- a/Ryujinx.Audio/Renderer/Parameter/EffectInParameterVersion1.cs +++ b/Ryujinx.Audio/Renderer/Parameter/EffectInParameterVersion1.cs @@ -94,4 +94,4 @@ namespace Ryujinx.Audio.Renderer.Parameter return channelCount == 1 || channelCount == 2 || channelCount == 4 || channelCount == 6; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/EffectInParameterVersion2.cs b/Ryujinx.Audio/Renderer/Parameter/EffectInParameterVersion2.cs index acdcc6904b..250012d167 100644 --- a/Ryujinx.Audio/Renderer/Parameter/EffectInParameterVersion2.cs +++ b/Ryujinx.Audio/Renderer/Parameter/EffectInParameterVersion2.cs @@ -94,4 +94,4 @@ namespace Ryujinx.Audio.Renderer.Parameter return channelCount == 1 || channelCount == 2 || channelCount == 4 || channelCount == 6; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/EffectOutStatusVersion1.cs b/Ryujinx.Audio/Renderer/Parameter/EffectOutStatusVersion1.cs index 80247cf4a1..5e6a33aced 100644 --- a/Ryujinx.Audio/Renderer/Parameter/EffectOutStatusVersion1.cs +++ b/Ryujinx.Audio/Renderer/Parameter/EffectOutStatusVersion1.cs @@ -20,4 +20,4 @@ namespace Ryujinx.Audio.Renderer.Parameter EffectState IEffectOutStatus.State { get => State; set => State = value; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/EffectOutStatusVersion2.cs b/Ryujinx.Audio/Renderer/Parameter/EffectOutStatusVersion2.cs index 663112b8b3..f2c9768b39 100644 --- a/Ryujinx.Audio/Renderer/Parameter/EffectOutStatusVersion2.cs +++ b/Ryujinx.Audio/Renderer/Parameter/EffectOutStatusVersion2.cs @@ -25,4 +25,4 @@ namespace Ryujinx.Audio.Renderer.Parameter EffectState IEffectOutStatus.State { get => State; set => State = value; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/EffectResultState.cs b/Ryujinx.Audio/Renderer/Parameter/EffectResultState.cs index b3a4bae122..bd96c22bfd 100644 --- a/Ryujinx.Audio/Renderer/Parameter/EffectResultState.cs +++ b/Ryujinx.Audio/Renderer/Parameter/EffectResultState.cs @@ -23,4 +23,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// public Span SpecificData => SpanHelpers.AsSpan(ref _specificDataStart); } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/EffectState.cs b/Ryujinx.Audio/Renderer/Parameter/EffectState.cs index 30cfb9af81..911ba6d84c 100644 --- a/Ryujinx.Audio/Renderer/Parameter/EffectState.cs +++ b/Ryujinx.Audio/Renderer/Parameter/EffectState.cs @@ -15,4 +15,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// Disabled = 4 } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/IEffectInParameter.cs b/Ryujinx.Audio/Renderer/Parameter/IEffectInParameter.cs index 703c3e6db3..bdd1ca45e5 100644 --- a/Ryujinx.Audio/Renderer/Parameter/IEffectInParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/IEffectInParameter.cs @@ -50,4 +50,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// Span SpecificData { get; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/IEffectOutStatus.cs b/Ryujinx.Audio/Renderer/Parameter/IEffectOutStatus.cs index 74d132209d..a5addbcb75 100644 --- a/Ryujinx.Audio/Renderer/Parameter/IEffectOutStatus.cs +++ b/Ryujinx.Audio/Renderer/Parameter/IEffectOutStatus.cs @@ -10,4 +10,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// EffectState State { get; set; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/MemoryPoolInParameter.cs b/Ryujinx.Audio/Renderer/Parameter/MemoryPoolInParameter.cs index 6025085896..242e3843c1 100644 --- a/Ryujinx.Audio/Renderer/Parameter/MemoryPoolInParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/MemoryPoolInParameter.cs @@ -30,4 +30,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// private unsafe fixed uint _reserved[3]; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/MemoryPoolOutStatus.cs b/Ryujinx.Audio/Renderer/Parameter/MemoryPoolOutStatus.cs index a78937d016..29a6e261f9 100644 --- a/Ryujinx.Audio/Renderer/Parameter/MemoryPoolOutStatus.cs +++ b/Ryujinx.Audio/Renderer/Parameter/MemoryPoolOutStatus.cs @@ -19,4 +19,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// private unsafe fixed uint _reserved[3]; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/MixInParameterDirtyOnlyUpdate.cs b/Ryujinx.Audio/Renderer/Parameter/MixInParameterDirtyOnlyUpdate.cs index 733b5ad761..c0954cda04 100644 --- a/Ryujinx.Audio/Renderer/Parameter/MixInParameterDirtyOnlyUpdate.cs +++ b/Ryujinx.Audio/Renderer/Parameter/MixInParameterDirtyOnlyUpdate.cs @@ -24,4 +24,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// private unsafe fixed byte _reserved[24]; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/MixParameter.cs b/Ryujinx.Audio/Renderer/Parameter/MixParameter.cs index 25281d865b..5b9a969a0b 100644 --- a/Ryujinx.Audio/Renderer/Parameter/MixParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/MixParameter.cs @@ -92,4 +92,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// Used when no splitter id is specified. public Span MixBufferVolume => SpanHelpers.AsSpan(ref _mixBufferVolumeArray); } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Performance/PerformanceInParameter.cs b/Ryujinx.Audio/Renderer/Parameter/Performance/PerformanceInParameter.cs index 806f7fa892..0f9a3aa3e2 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Performance/PerformanceInParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Performance/PerformanceInParameter.cs @@ -18,4 +18,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Performance /// private unsafe fixed uint _reserved[3]; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Performance/PerformanceOutStatus.cs b/Ryujinx.Audio/Renderer/Parameter/Performance/PerformanceOutStatus.cs index 839d6eb6b5..64bbe080ae 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Performance/PerformanceOutStatus.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Performance/PerformanceOutStatus.cs @@ -18,4 +18,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Performance /// private unsafe fixed uint _reserved[3]; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/RendererInfoOutStatus.cs b/Ryujinx.Audio/Renderer/Parameter/RendererInfoOutStatus.cs index e72d836f49..a42ea833f7 100644 --- a/Ryujinx.Audio/Renderer/Parameter/RendererInfoOutStatus.cs +++ b/Ryujinx.Audio/Renderer/Parameter/RendererInfoOutStatus.cs @@ -18,4 +18,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// private ulong _reserved; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Sink/CircularBufferParameter.cs b/Ryujinx.Audio/Renderer/Parameter/Sink/CircularBufferParameter.cs index 46ff2a4c4f..7c02d65ff0 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Sink/CircularBufferParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Sink/CircularBufferParameter.cs @@ -59,4 +59,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Sink /// private ushort _reserved2; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/Sink/DeviceParameter.cs b/Ryujinx.Audio/Renderer/Parameter/Sink/DeviceParameter.cs index d1e6b2e955..abeadaccf4 100644 --- a/Ryujinx.Audio/Renderer/Parameter/Sink/DeviceParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/Sink/DeviceParameter.cs @@ -55,4 +55,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Sink /// public Span DeviceName => SpanHelpers.AsSpan(ref _deviceName); } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/SinkInParameter.cs b/Ryujinx.Audio/Renderer/Parameter/SinkInParameter.cs index a8af236d4b..1ee4eb532e 100644 --- a/Ryujinx.Audio/Renderer/Parameter/SinkInParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/SinkInParameter.cs @@ -50,4 +50,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// public Span SpecificData => SpanHelpers.AsSpan(ref _specificDataStart); } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/SinkOutStatus.cs b/Ryujinx.Audio/Renderer/Parameter/SinkOutStatus.cs index cf88679e7a..426b861cac 100644 --- a/Ryujinx.Audio/Renderer/Parameter/SinkOutStatus.cs +++ b/Ryujinx.Audio/Renderer/Parameter/SinkOutStatus.cs @@ -23,4 +23,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// private unsafe fixed ulong _reserved[3]; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/SplitterDestinationInParameter.cs b/Ryujinx.Audio/Renderer/Parameter/SplitterDestinationInParameter.cs index 50c1b072ba..96c43092b8 100644 --- a/Ryujinx.Audio/Renderer/Parameter/SplitterDestinationInParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/SplitterDestinationInParameter.cs @@ -64,4 +64,4 @@ namespace Ryujinx.Audio.Renderer.Parameter return Magic == ValidMagic; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/SplitterInParameter.cs b/Ryujinx.Audio/Renderer/Parameter/SplitterInParameter.cs index 8e808e4cef..0220497de9 100644 --- a/Ryujinx.Audio/Renderer/Parameter/SplitterInParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/SplitterInParameter.cs @@ -43,4 +43,4 @@ namespace Ryujinx.Audio.Renderer.Parameter return Magic == ValidMagic; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/SplitterInParameterHeader.cs b/Ryujinx.Audio/Renderer/Parameter/SplitterInParameterHeader.cs index b117d5aad8..dbae17a9a5 100644 --- a/Ryujinx.Audio/Renderer/Parameter/SplitterInParameterHeader.cs +++ b/Ryujinx.Audio/Renderer/Parameter/SplitterInParameterHeader.cs @@ -42,4 +42,4 @@ namespace Ryujinx.Audio.Renderer.Parameter return Magic == ValidMagic; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/VoiceChannelResourceInParameter.cs b/Ryujinx.Audio/Renderer/Parameter/VoiceChannelResourceInParameter.cs index 6cff1a2515..6a863237d5 100644 --- a/Ryujinx.Audio/Renderer/Parameter/VoiceChannelResourceInParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/VoiceChannelResourceInParameter.cs @@ -25,4 +25,4 @@ namespace Ryujinx.Audio.Renderer.Parameter [MarshalAs(UnmanagedType.I1)] public bool IsUsed; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/VoiceInParameter.cs b/Ryujinx.Audio/Renderer/Parameter/VoiceInParameter.cs index 2be1e7c569..c4b4ba3128 100644 --- a/Ryujinx.Audio/Renderer/Parameter/VoiceInParameter.cs +++ b/Ryujinx.Audio/Renderer/Parameter/VoiceInParameter.cs @@ -341,4 +341,4 @@ namespace Ryujinx.Audio.Renderer.Parameter Low } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Parameter/VoiceOutStatus.cs b/Ryujinx.Audio/Renderer/Parameter/VoiceOutStatus.cs index a7c7498356..be9d358495 100644 --- a/Ryujinx.Audio/Renderer/Parameter/VoiceOutStatus.cs +++ b/Ryujinx.Audio/Renderer/Parameter/VoiceOutStatus.cs @@ -32,4 +32,4 @@ namespace Ryujinx.Audio.Renderer.Parameter /// private unsafe fixed byte _reserved[3]; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/AudioRenderSystem.cs b/Ryujinx.Audio/Renderer/Server/AudioRenderSystem.cs index 5eab73bcbd..904b56f652 100644 --- a/Ryujinx.Audio/Renderer/Server/AudioRenderSystem.cs +++ b/Ryujinx.Audio/Renderer/Server/AudioRenderSystem.cs @@ -29,34 +29,34 @@ namespace Ryujinx.Audio.Renderer.Server private object _lock = new object(); private AudioRendererExecutionMode _executionMode; - private IWritableEvent _systemEvent; - private ManualResetEvent _terminationEvent; - private MemoryPoolState _dspMemoryPoolState; - private VoiceContext _voiceContext; - private MixContext _mixContext; - private SinkContext _sinkContext; - private SplitterContext _splitterContext; - private EffectContext _effectContext; - private PerformanceManager _performanceManager; - private UpsamplerManager _upsamplerManager; - private bool _isActive; - private BehaviourContext _behaviourContext; - private ulong _totalElapsedTicksUpdating; - private ulong _totalElapsedTicks; - private int _sessionId; - private Memory _memoryPools; + private IWritableEvent _systemEvent; + private ManualResetEvent _terminationEvent; + private MemoryPoolState _dspMemoryPoolState; + private VoiceContext _voiceContext; + private MixContext _mixContext; + private SinkContext _sinkContext; + private SplitterContext _splitterContext; + private EffectContext _effectContext; + private PerformanceManager _performanceManager; + private UpsamplerManager _upsamplerManager; + private bool _isActive; + private BehaviourContext _behaviourContext; + private ulong _totalElapsedTicksUpdating; + private ulong _totalElapsedTicks; + private int _sessionId; + private Memory _memoryPools; - private uint _sampleRate; - private uint _sampleCount; - private uint _mixBufferCount; - private uint _voiceChannelCountMax; - private uint _upsamplerCount; - private uint _memoryPoolCount; - private uint _processHandle; + private uint _sampleRate; + private uint _sampleCount; + private uint _mixBufferCount; + private uint _voiceChannelCountMax; + private uint _upsamplerCount; + private uint _memoryPoolCount; + private uint _processHandle; private ulong _appletResourceId; private WritableRegion _workBufferRegion; - private MemoryHandle _workBufferMemoryPin; + private MemoryHandle _workBufferMemoryPin; private Memory _mixBuffer; private Memory _depopBuffer; @@ -81,21 +81,21 @@ namespace Ryujinx.Audio.Renderer.Server public AudioRenderSystem(AudioRendererManager manager, IWritableEvent systemEvent) { - _manager = manager; - _terminationEvent = new ManualResetEvent(false); + _manager = manager; + _terminationEvent = new ManualResetEvent(false); _dspMemoryPoolState = MemoryPoolState.Create(MemoryPoolState.LocationType.Dsp); - _voiceContext = new VoiceContext(); - _mixContext = new MixContext(); - _sinkContext = new SinkContext(); - _splitterContext = new SplitterContext(); - _effectContext = new EffectContext(); + _voiceContext = new VoiceContext(); + _mixContext = new MixContext(); + _sinkContext = new SinkContext(); + _splitterContext = new SplitterContext(); + _effectContext = new EffectContext(); _commandProcessingTimeEstimator = null; _systemEvent = systemEvent; _behaviourContext = new BehaviourContext(); _totalElapsedTicksUpdating = 0; - _sessionId = 0; + _sessionId = 0; } public ResultCode Initialize(ref AudioRendererConfiguration parameter, uint processHandle, CpuAddress workBuffer, ulong workBufferSize, int sessionId, ulong appletResourceId, IVirtualMemoryManager memoryManager) @@ -116,7 +116,7 @@ namespace Ryujinx.Audio.Renderer.Server _behaviourContext.SetUserRevision(parameter.Revision); - _sampleRate = parameter.SampleRate; + _sampleRate = parameter.SampleRate; _sampleCount = parameter.SampleCount; _mixBufferCount = parameter.MixBufferCount; _voiceChannelCountMax = Constants.VoiceChannelCountMax; @@ -203,7 +203,7 @@ namespace Ryujinx.Audio.Renderer.Server { ref VoiceChannelResource voiceChannelResource = ref voiceChannelResources.Span[(int)id]; - voiceChannelResource.Id = id; + voiceChannelResource.Id = id; voiceChannelResource.IsUsed = false; } @@ -852,4 +852,4 @@ namespace Ryujinx.Audio.Renderer.Server } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/AudioRendererManager.cs b/Ryujinx.Audio/Renderer/Server/AudioRendererManager.cs index 23bf6fe067..3fbdc58de6 100644 --- a/Ryujinx.Audio/Renderer/Server/AudioRendererManager.cs +++ b/Ryujinx.Audio/Renderer/Server/AudioRendererManager.cs @@ -381,4 +381,4 @@ namespace Ryujinx.Audio.Renderer.Server } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/BehaviourContext.cs b/Ryujinx.Audio/Renderer/Server/BehaviourContext.cs index 878665f1d8..4172041513 100644 --- a/Ryujinx.Audio/Renderer/Server/BehaviourContext.cs +++ b/Ryujinx.Audio/Renderer/Server/BehaviourContext.cs @@ -141,8 +141,8 @@ namespace Ryujinx.Audio.Renderer.Server public BehaviourContext() { UserRevision = 0; - _errorInfos = new ErrorInfo[Constants.MaxErrorInfos]; - _errorIndex = 0; + _errorInfos = new ErrorInfo[Constants.MaxErrorInfos]; + _errorIndex = 0; } /// @@ -448,4 +448,4 @@ namespace Ryujinx.Audio.Renderer.Server _errorIndex = 0; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/CommandBuffer.cs b/Ryujinx.Audio/Renderer/Server/CommandBuffer.cs index c46944c045..aa3d979572 100644 --- a/Ryujinx.Audio/Renderer/Server/CommandBuffer.cs +++ b/Ryujinx.Audio/Renderer/Server/CommandBuffer.cs @@ -554,4 +554,4 @@ namespace Ryujinx.Audio.Renderer.Server AddCommand(command); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/CommandGenerator.cs b/Ryujinx.Audio/Renderer/Server/CommandGenerator.cs index 1b43d92f5b..514279f1dd 100644 --- a/Ryujinx.Audio/Renderer/Server/CommandGenerator.cs +++ b/Ryujinx.Audio/Renderer/Server/CommandGenerator.cs @@ -1011,4 +1011,4 @@ namespace Ryujinx.Audio.Renderer.Server } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion1.cs b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion1.cs index 6bb1e160ef..32c52dc43d 100644 --- a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion1.cs +++ b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion1.cs @@ -180,4 +180,4 @@ namespace Ryujinx.Audio.Renderer.Server return 0; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion2.cs b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion2.cs index 05447e572b..15800c9939 100644 --- a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion2.cs +++ b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion2.cs @@ -544,4 +544,4 @@ namespace Ryujinx.Audio.Renderer.Server return 0; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion3.cs b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion3.cs index 13f476d61f..6c6e2828c6 100644 --- a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion3.cs +++ b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion3.cs @@ -748,4 +748,4 @@ namespace Ryujinx.Audio.Renderer.Server return 0; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion4.cs b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion4.cs index b2a0b84a04..2385f46f10 100644 --- a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion4.cs +++ b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion4.cs @@ -48,4 +48,4 @@ namespace Ryujinx.Audio.Renderer.Server return (uint)435.2f; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion5.cs b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion5.cs index 70a8b3f985..961d92aa6b 100644 --- a/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion5.cs +++ b/Ryujinx.Audio/Renderer/Server/CommandProcessingTimeEstimatorVersion5.cs @@ -233,4 +233,4 @@ namespace Ryujinx.Audio.Renderer.Server } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/AuxiliaryBufferEffect.cs b/Ryujinx.Audio/Renderer/Server/Effect/AuxiliaryBufferEffect.cs index 46b2a9a3e7..164065271e 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/AuxiliaryBufferEffect.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/AuxiliaryBufferEffect.cs @@ -82,4 +82,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect UpdateUsageStateForCommandGeneration(); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/BaseEffect.cs b/Ryujinx.Audio/Renderer/Server/Effect/BaseEffect.cs index 5c75ecd510..35314aca51 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/BaseEffect.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/BaseEffect.cs @@ -81,7 +81,7 @@ namespace Ryujinx.Audio.Renderer.Server.Effect /// /// The user parameter. /// Returns true if the sent by the user matches the internal . - public bool IsTypeValid(ref T parameter) where T: unmanaged, IEffectInParameter + public bool IsTypeValid(ref T parameter) where T : unmanaged, IEffectInParameter { return parameter.Type == TargetEffectType; } @@ -140,14 +140,14 @@ namespace Ryujinx.Audio.Renderer.Server.Effect /// Initialize the given result state. /// /// The state to initalize - public virtual void InitializeResultState(ref EffectResultState state) {} + public virtual void InitializeResultState(ref EffectResultState state) { } /// /// Update the result state with . /// /// The destination result state /// The source result state - public virtual void UpdateResultState(ref EffectResultState destState, ref EffectResultState srcState) {} + public virtual void UpdateResultState(ref EffectResultState destState, ref EffectResultState srcState) { } /// /// Update the internal state from a user version 1 parameter. @@ -215,7 +215,7 @@ namespace Ryujinx.Audio.Renderer.Server.Effect /// /// The given user output. /// If set to true, the is active. - public void StoreStatus(ref T outStatus, bool isAudioRendererActive) where T: unmanaged, IEffectOutStatus + public void StoreStatus(ref T outStatus, bool isAudioRendererActive) where T : unmanaged, IEffectOutStatus { if (isAudioRendererActive) { @@ -267,4 +267,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/BiquadFilterEffect.cs b/Ryujinx.Audio/Renderer/Server/Effect/BiquadFilterEffect.cs index b987f7c85e..de91046dcf 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/BiquadFilterEffect.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/BiquadFilterEffect.cs @@ -64,4 +64,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect Parameter.Status = UsageState.Enabled; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/BufferMixEffect.cs b/Ryujinx.Audio/Renderer/Server/Effect/BufferMixEffect.cs index d6cb9cfa39..82c0a055a8 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/BufferMixEffect.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/BufferMixEffect.cs @@ -46,4 +46,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect UpdateUsageStateForCommandGeneration(); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/CaptureBufferEffect.cs b/Ryujinx.Audio/Renderer/Server/Effect/CaptureBufferEffect.cs index 5be4b4ed51..c445798d47 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/CaptureBufferEffect.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/CaptureBufferEffect.cs @@ -79,4 +79,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect UpdateUsageStateForCommandGeneration(); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/DelayEffect.cs b/Ryujinx.Audio/Renderer/Server/Effect/DelayEffect.cs index 43cabb7db9..3f5d70bcf6 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/DelayEffect.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/DelayEffect.cs @@ -90,4 +90,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect Parameter.Status = UsageState.Enabled; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/EffectContext.cs b/Ryujinx.Audio/Renderer/Server/Effect/EffectContext.cs index 619f31100d..bfb6528b46 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/EffectContext.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/EffectContext.cs @@ -120,4 +120,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/LimiterEffect.cs b/Ryujinx.Audio/Renderer/Server/Effect/LimiterEffect.cs index 3e2f7326d0..6e17ef3d1c 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/LimiterEffect.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/LimiterEffect.cs @@ -92,4 +92,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect destState = srcState; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/Reverb3dEffect.cs b/Ryujinx.Audio/Renderer/Server/Effect/Reverb3dEffect.cs index 782f1abb0c..473fddb849 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/Reverb3dEffect.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/Reverb3dEffect.cs @@ -46,7 +46,7 @@ namespace Ryujinx.Audio.Renderer.Server.Effect Update(out updateErrorInfo, ref parameter, mapper); } - public void Update(out BehaviourParameter.ErrorInfo updateErrorInfo, ref T parameter, PoolMapper mapper) where T: unmanaged, IEffectInParameter + public void Update(out BehaviourParameter.ErrorInfo updateErrorInfo, ref T parameter, PoolMapper mapper) where T : unmanaged, IEffectInParameter { Debug.Assert(IsTypeValid(ref parameter)); @@ -89,4 +89,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect Parameter.ParameterStatus = UsageState.Enabled; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/ReverbEffect.cs b/Ryujinx.Audio/Renderer/Server/Effect/ReverbEffect.cs index 6fdf8fc23d..e1543fd174 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/ReverbEffect.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/ReverbEffect.cs @@ -92,4 +92,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect Parameter.Status = UsageState.Enabled; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Effect/UsageState.cs b/Ryujinx.Audio/Renderer/Server/Effect/UsageState.cs index 2caf10b861..8648aa2ca8 100644 --- a/Ryujinx.Audio/Renderer/Server/Effect/UsageState.cs +++ b/Ryujinx.Audio/Renderer/Server/Effect/UsageState.cs @@ -25,4 +25,4 @@ namespace Ryujinx.Audio.Renderer.Server.Effect /// Disabled } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/ICommandProcessingTimeEstimator.cs b/Ryujinx.Audio/Renderer/Server/ICommandProcessingTimeEstimator.cs index 377f4384c9..e365a86c04 100644 --- a/Ryujinx.Audio/Renderer/Server/ICommandProcessingTimeEstimator.cs +++ b/Ryujinx.Audio/Renderer/Server/ICommandProcessingTimeEstimator.cs @@ -36,4 +36,4 @@ namespace Ryujinx.Audio.Renderer.Server uint Estimate(GroupedBiquadFilterCommand command); uint Estimate(CaptureBufferCommand command); } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/MemoryPool/AddressInfo.cs b/Ryujinx.Audio/Renderer/Server/MemoryPool/AddressInfo.cs index fa1ae44ac7..5fd6b2b92b 100644 --- a/Ryujinx.Audio/Renderer/Server/MemoryPool/AddressInfo.cs +++ b/Ryujinx.Audio/Renderer/Server/MemoryPool/AddressInfo.cs @@ -1,8 +1,7 @@ using System; using System.Runtime.InteropServices; - -using DspAddress = System.UInt64; using CpuAddress = System.UInt64; +using DspAddress = System.UInt64; namespace Ryujinx.Audio.Renderer.Server.MemoryPool { @@ -53,9 +52,9 @@ namespace Ryujinx.Audio.Renderer.Server.MemoryPool { return new AddressInfo { - CpuAddress = cpuAddress, - _memoryPools = MemoryPoolState.Null, - Size = size, + CpuAddress = cpuAddress, + _memoryPools = MemoryPoolState.Null, + Size = size, ForceMappedDspAddress = 0 }; } @@ -68,8 +67,8 @@ namespace Ryujinx.Audio.Renderer.Server.MemoryPool /// The size of the region. public void Setup(CpuAddress cpuAddress, ulong size) { - CpuAddress = cpuAddress; - Size = size; + CpuAddress = cpuAddress; + Size = size; ForceMappedDspAddress = 0; unsafe @@ -131,4 +130,4 @@ namespace Ryujinx.Audio.Renderer.Server.MemoryPool return MemoryPoolState.Translate(CpuAddress, Size); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/MemoryPool/MemoryPoolState.cs b/Ryujinx.Audio/Renderer/Server/MemoryPool/MemoryPoolState.cs index 6abdd2d6c4..69466bab50 100644 --- a/Ryujinx.Audio/Renderer/Server/MemoryPool/MemoryPoolState.cs +++ b/Ryujinx.Audio/Renderer/Server/MemoryPool/MemoryPoolState.cs @@ -1,8 +1,7 @@ using System; using System.Runtime.InteropServices; - -using DspAddress = System.UInt64; using CpuAddress = System.UInt64; +using DspAddress = System.UInt64; namespace Ryujinx.Audio.Renderer.Server.MemoryPool { @@ -69,8 +68,8 @@ namespace Ryujinx.Audio.Renderer.Server.MemoryPool { CpuAddress = 0, DspAddress = 0, - Size = 0, - Location = location + Size = 0, + Location = location }; } @@ -82,7 +81,7 @@ namespace Ryujinx.Audio.Renderer.Server.MemoryPool public void SetCpuAddress(CpuAddress cpuAddress, ulong size) { CpuAddress = cpuAddress; - Size = size; + Size = size; } /// @@ -128,4 +127,4 @@ namespace Ryujinx.Audio.Renderer.Server.MemoryPool return DspAddress != 0; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs b/Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs index 382f34d88c..cf0fc067e2 100644 --- a/Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs +++ b/Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs @@ -229,14 +229,14 @@ namespace Ryujinx.Audio.Renderer.Server.MemoryPool if (AssignDspAddress(ref addressInfo)) { - errorInfo.ErrorCode = 0x0; + errorInfo.ErrorCode = 0x0; errorInfo.ExtraErrorInfo = 0x0; return true; } else { - errorInfo.ErrorCode = ResultCode.InvalidAddressInfo; + errorInfo.ErrorCode = ResultCode.InvalidAddressInfo; errorInfo.ExtraErrorInfo = addressInfo.CpuAddress; return _isForceMapEnabled; @@ -363,4 +363,4 @@ namespace Ryujinx.Audio.Renderer.Server.MemoryPool } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Mix/MixContext.cs b/Ryujinx.Audio/Renderer/Server/Mix/MixContext.cs index 6965803fc9..cda6f737c5 100644 --- a/Ryujinx.Audio/Renderer/Server/Mix/MixContext.cs +++ b/Ryujinx.Audio/Renderer/Server/Mix/MixContext.cs @@ -256,4 +256,4 @@ namespace Ryujinx.Audio.Renderer.Server.Mix } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Mix/MixState.cs b/Ryujinx.Audio/Renderer/Server/Mix/MixState.cs index 12540ecb3a..146e67811a 100644 --- a/Ryujinx.Audio/Renderer/Server/Mix/MixState.cs +++ b/Ryujinx.Audio/Renderer/Server/Mix/MixState.cs @@ -310,4 +310,4 @@ namespace Ryujinx.Audio.Renderer.Server.Mix return isDirty; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceDetailEntry.cs b/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceDetailEntry.cs index ffabf46764..dbe59cb0dc 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceDetailEntry.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceDetailEntry.cs @@ -49,4 +49,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance /// The type to use. void SetDetailType(PerformanceDetailType detailType); } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceEntry.cs b/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceEntry.cs index a0178187be..9888a4cc1c 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceEntry.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceEntry.cs @@ -43,4 +43,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance /// The type to use. void SetEntryType(PerformanceEntryType type); } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceHeader.cs b/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceHeader.cs index deacd8ccce..21876b4b46 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceHeader.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/IPerformanceHeader.cs @@ -77,4 +77,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance /// The total count of detailed entries in this frame. void SetEntryDetailCount(int entryDetailCount); } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion1.cs b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion1.cs index a8a6dfc832..22704c0d1d 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion1.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion1.cs @@ -69,4 +69,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance NodeId = nodeId; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion2.cs b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion2.cs index 26d4ec8e29..05ecda9b63 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion2.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceDetailVersion2.cs @@ -69,4 +69,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance NodeId = nodeId; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryAddresses.cs b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryAddresses.cs index d24b96a279..1b8d8668a5 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryAddresses.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryAddresses.cs @@ -53,4 +53,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance BaseMemory.Span[(int)ProcessingTimeOffset / 4] = (int)(endTimeNano / 1000) - BaseMemory.Span[(int)StartTimeOffset / 4]; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryVersion1.cs b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryVersion1.cs index a1c7e914a1..fa2d32164c 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryVersion1.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryVersion1.cs @@ -59,4 +59,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance NodeId = nodeId; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryVersion2.cs b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryVersion2.cs index 7437fb059f..49d4b3ce08 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryVersion2.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceEntryVersion2.cs @@ -59,4 +59,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance NodeId = nodeId; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceFrameHeaderVersion1.cs b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceFrameHeaderVersion1.cs index 8c65538b6e..5fe6bff06d 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceFrameHeaderVersion1.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceFrameHeaderVersion1.cs @@ -98,4 +98,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance VoiceDropCount = voiceCount; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceFrameHeaderVersion2.cs b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceFrameHeaderVersion2.cs index 2eab209601..a182296868 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceFrameHeaderVersion2.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceFrameHeaderVersion2.cs @@ -114,4 +114,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance VoiceDropCount = voiceCount; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceManager.cs b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceManager.cs index fa5c74b6c6..f996441c04 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceManager.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceManager.cs @@ -103,4 +103,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceManagerGeneric.cs b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceManagerGeneric.cs index 43281f7038..18e77391db 100644 --- a/Ryujinx.Audio/Renderer/Server/Performance/PerformanceManagerGeneric.cs +++ b/Ryujinx.Audio/Renderer/Server/Performance/PerformanceManagerGeneric.cs @@ -13,7 +13,7 @@ namespace Ryujinx.Audio.Renderer.Server.Performance /// The header implementation of the performance frame. /// The entry implementation of the performance frame. /// A detailed implementation of the performance frame. - public class PerformanceManagerGeneric : PerformanceManager where THeader: unmanaged, IPerformanceHeader where TEntry : unmanaged, IPerformanceEntry where TEntryDetail: unmanaged, IPerformanceDetailEntry + public class PerformanceManagerGeneric : PerformanceManager where THeader : unmanaged, IPerformanceHeader where TEntry : unmanaged, IPerformanceEntry where TEntryDetail : unmanaged, IPerformanceDetailEntry { /// /// The magic used for the . @@ -301,4 +301,4 @@ namespace Ryujinx.Audio.Renderer.Server.Performance } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/RendererSystemContext.cs b/Ryujinx.Audio/Renderer/Server/RendererSystemContext.cs index 0908500182..1645678065 100644 --- a/Ryujinx.Audio/Renderer/Server/RendererSystemContext.cs +++ b/Ryujinx.Audio/Renderer/Server/RendererSystemContext.cs @@ -45,4 +45,4 @@ namespace Ryujinx.Audio.Renderer.Server /// public Memory DepopBuffer; } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Sink/BaseSink.cs b/Ryujinx.Audio/Renderer/Server/Sink/BaseSink.cs index d36c5e260e..f7b6399756 100644 --- a/Ryujinx.Audio/Renderer/Server/Sink/BaseSink.cs +++ b/Ryujinx.Audio/Renderer/Server/Sink/BaseSink.cs @@ -99,4 +99,4 @@ namespace Ryujinx.Audio.Renderer.Server.Sink errorInfo = new ErrorInfo(); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Sink/CircularBufferSink.cs b/Ryujinx.Audio/Renderer/Server/Sink/CircularBufferSink.cs index 097757988d..722d8c4b4c 100644 --- a/Ryujinx.Audio/Renderer/Server/Sink/CircularBufferSink.cs +++ b/Ryujinx.Audio/Renderer/Server/Sink/CircularBufferSink.cs @@ -106,4 +106,4 @@ namespace Ryujinx.Audio.Renderer.Server.Sink base.CleanUp(); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Sink/DeviceSink.cs b/Ryujinx.Audio/Renderer/Server/Sink/DeviceSink.cs index 9ad16c94d9..970e145e8a 100644 --- a/Ryujinx.Audio/Renderer/Server/Sink/DeviceSink.cs +++ b/Ryujinx.Audio/Renderer/Server/Sink/DeviceSink.cs @@ -72,4 +72,4 @@ namespace Ryujinx.Audio.Renderer.Server.Sink outStatus = new SinkOutStatus(); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Sink/SinkContext.cs b/Ryujinx.Audio/Renderer/Server/Sink/SinkContext.cs index 951984d8cc..b57d399083 100644 --- a/Ryujinx.Audio/Renderer/Server/Sink/SinkContext.cs +++ b/Ryujinx.Audio/Renderer/Server/Sink/SinkContext.cs @@ -53,4 +53,4 @@ namespace Ryujinx.Audio.Renderer.Server.Sink return ref _sinks[id]; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Splitter/SplitterContext.cs b/Ryujinx.Audio/Renderer/Server/Splitter/SplitterContext.cs index 1000e20c20..72f19a672c 100644 --- a/Ryujinx.Audio/Renderer/Server/Splitter/SplitterContext.cs +++ b/Ryujinx.Audio/Renderer/Server/Splitter/SplitterContext.cs @@ -300,4 +300,4 @@ namespace Ryujinx.Audio.Renderer.Server.Splitter } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Splitter/SplitterDestination.cs b/Ryujinx.Audio/Renderer/Server/Splitter/SplitterDestination.cs index cf599eef1a..c074e4a72a 100644 --- a/Ryujinx.Audio/Renderer/Server/Splitter/SplitterDestination.cs +++ b/Ryujinx.Audio/Renderer/Server/Splitter/SplitterDestination.cs @@ -172,7 +172,7 @@ namespace Ryujinx.Audio.Renderer.Server.Splitter { unsafe { - fixed (SplitterDestination *nextPtr = &next) + fixed (SplitterDestination* nextPtr = &next) { _next = nextPtr; } @@ -190,4 +190,4 @@ namespace Ryujinx.Audio.Renderer.Server.Splitter } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Splitter/SplitterState.cs b/Ryujinx.Audio/Renderer/Server/Splitter/SplitterState.cs index da3f07ee4e..15a0c6ba46 100644 --- a/Ryujinx.Audio/Renderer/Server/Splitter/SplitterState.cs +++ b/Ryujinx.Audio/Renderer/Server/Splitter/SplitterState.cs @@ -218,4 +218,4 @@ namespace Ryujinx.Audio.Renderer.Server.Splitter } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/StateUpdater.cs b/Ryujinx.Audio/Renderer/Server/StateUpdater.cs index a20b790296..0514c3555b 100644 --- a/Ryujinx.Audio/Renderer/Server/StateUpdater.cs +++ b/Ryujinx.Audio/Renderer/Server/StateUpdater.cs @@ -21,7 +21,7 @@ namespace Ryujinx.Audio.Renderer.Server public class StateUpdater { private readonly ReadOnlyMemory _inputOrigin; - private ReadOnlyMemory _outputOrigin; + private ReadOnlyMemory _outputOrigin; private ReadOnlyMemory _input; private Memory _output; @@ -207,7 +207,7 @@ namespace Ryujinx.Audio.Renderer.Server return ResultCode.Success; } - private static void ResetEffect(ref BaseEffect effect, ref T parameter, PoolMapper mapper) where T: unmanaged, IEffectInParameter + private static void ResetEffect(ref BaseEffect effect, ref T parameter, PoolMapper mapper) where T : unmanaged, IEffectInParameter { effect.ForceUnmapBuffers(mapper); @@ -629,4 +629,4 @@ namespace Ryujinx.Audio.Renderer.Server return ResultCode.Success; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Types/AudioRendererRenderingDevice.cs b/Ryujinx.Audio/Renderer/Server/Types/AudioRendererRenderingDevice.cs index 8d4a6db7a6..5ad27b0b1a 100644 --- a/Ryujinx.Audio/Renderer/Server/Types/AudioRendererRenderingDevice.cs +++ b/Ryujinx.Audio/Renderer/Server/Types/AudioRendererRenderingDevice.cs @@ -21,4 +21,4 @@ namespace Ryujinx.Audio.Renderer.Server.Types /// Cpu } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Types/PlayState.cs b/Ryujinx.Audio/Renderer/Server/Types/PlayState.cs index dbae31bf1c..25cc34a8f0 100644 --- a/Ryujinx.Audio/Renderer/Server/Types/PlayState.cs +++ b/Ryujinx.Audio/Renderer/Server/Types/PlayState.cs @@ -36,4 +36,4 @@ namespace Ryujinx.Audio.Renderer.Server.Types /// Paused } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Upsampler/UpsamplerManager.cs b/Ryujinx.Audio/Renderer/Server/Upsampler/UpsamplerManager.cs index 4413b15f51..b37988feda 100644 --- a/Ryujinx.Audio/Renderer/Server/Upsampler/UpsamplerManager.cs +++ b/Ryujinx.Audio/Renderer/Server/Upsampler/UpsamplerManager.cs @@ -81,4 +81,4 @@ namespace Ryujinx.Audio.Renderer.Server.Upsampler } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Upsampler/UpsamplerState.cs b/Ryujinx.Audio/Renderer/Server/Upsampler/UpsamplerState.cs index e3039810c8..065e4838c7 100644 --- a/Ryujinx.Audio/Renderer/Server/Upsampler/UpsamplerState.cs +++ b/Ryujinx.Audio/Renderer/Server/Upsampler/UpsamplerState.cs @@ -60,4 +60,4 @@ namespace Ryujinx.Audio.Renderer.Server.Upsampler _manager.Free(_index); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Voice/VoiceChannelResource.cs b/Ryujinx.Audio/Renderer/Server/Voice/VoiceChannelResource.cs index a34680e303..81736630d0 100644 --- a/Ryujinx.Audio/Renderer/Server/Voice/VoiceChannelResource.cs +++ b/Ryujinx.Audio/Renderer/Server/Voice/VoiceChannelResource.cs @@ -37,4 +37,4 @@ namespace Ryujinx.Audio.Renderer.Server.Voice Mix.ToSpan().CopyTo(PreviousMix.ToSpan()); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Voice/VoiceContext.cs b/Ryujinx.Audio/Renderer/Server/Voice/VoiceContext.cs index 416a97a678..1c57b71be0 100644 --- a/Ryujinx.Audio/Renderer/Server/Voice/VoiceContext.cs +++ b/Ryujinx.Audio/Renderer/Server/Voice/VoiceContext.cs @@ -146,4 +146,4 @@ namespace Ryujinx.Audio.Renderer.Server.Voice sortedVoicesTemp.AsSpan().CopyTo(_sortedVoices.Span); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs b/Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs index 8b816bb473..004b5aa24d 100644 --- a/Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs +++ b/Ryujinx.Audio/Renderer/Server/Voice/VoiceState.cs @@ -200,7 +200,7 @@ namespace Ryujinx.Audio.Renderer.Server.Voice SampleFormat = SampleFormat.Invalid; ChannelsCount = 0; Pitch = 0.0f; - Volume= 0.0f; + Volume = 0.0f; PreviousVolume = 0.0f; BiquadFilters.ToSpan().Fill(new BiquadFilterParameter()); WaveBuffersCount = 0; @@ -260,7 +260,7 @@ namespace Ryujinx.Audio.Renderer.Server.Voice } return DataSourceStateAddressInfo.CpuAddress != parameter.DataSourceStateAddress || - DataSourceStateAddressInfo.Size != parameter.DataSourceStateSize || + DataSourceStateAddressInfo.Size != parameter.DataSourceStateSize || DataSourceStateUnmapped; } @@ -696,4 +696,4 @@ namespace Ryujinx.Audio.Renderer.Server.Voice return UpdateParametersForCommandGeneration(voiceUpdateStates); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Server/Voice/WaveBuffer.cs b/Ryujinx.Audio/Renderer/Server/Voice/WaveBuffer.cs index e6829766aa..4bf7dd2807 100644 --- a/Ryujinx.Audio/Renderer/Server/Voice/WaveBuffer.cs +++ b/Ryujinx.Audio/Renderer/Server/Voice/WaveBuffer.cs @@ -101,4 +101,4 @@ namespace Ryujinx.Audio.Renderer.Server.Voice return waveBuffer; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/AudioProcessorMemoryManager.cs b/Ryujinx.Audio/Renderer/Utils/AudioProcessorMemoryManager.cs index b9dba7ee0d..973f0672af 100644 --- a/Ryujinx.Audio/Renderer/Utils/AudioProcessorMemoryManager.cs +++ b/Ryujinx.Audio/Renderer/Utils/AudioProcessorMemoryManager.cs @@ -1,7 +1,6 @@ using System.Runtime.CompilerServices; - -using DspAddress = System.UInt64; using CpuAddress = System.UInt64; +using DspAddress = System.UInt64; namespace Ryujinx.Audio.Renderer.Utils { @@ -55,4 +54,4 @@ namespace Ryujinx.Audio.Renderer.Utils { } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/BitArray.cs b/Ryujinx.Audio/Renderer/Utils/BitArray.cs index a9c8210f62..8b10547711 100644 --- a/Ryujinx.Audio/Renderer/Utils/BitArray.cs +++ b/Ryujinx.Audio/Renderer/Utils/BitArray.cs @@ -100,4 +100,4 @@ namespace Ryujinx.Audio.Renderer.Utils _storage.Span.Fill(0); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/FileHardwareDevice.cs b/Ryujinx.Audio/Renderer/Utils/FileHardwareDevice.cs index fb5c687e93..830b36eeb3 100644 --- a/Ryujinx.Audio/Renderer/Utils/FileHardwareDevice.cs +++ b/Ryujinx.Audio/Renderer/Utils/FileHardwareDevice.cs @@ -96,4 +96,4 @@ namespace Ryujinx.Audio.Renderer.Utils } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/Mailbox.cs b/Ryujinx.Audio/Renderer/Utils/Mailbox.cs index 060489187f..35c71ae360 100644 --- a/Ryujinx.Audio/Renderer/Utils/Mailbox.cs +++ b/Ryujinx.Audio/Renderer/Utils/Mailbox.cs @@ -52,4 +52,4 @@ namespace Ryujinx.Audio.Renderer.Utils } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs b/Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs index 7a6edab19d..5b513aff32 100644 --- a/Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs +++ b/Ryujinx.Audio/Renderer/Utils/Math/Matrix2x2.cs @@ -68,4 +68,4 @@ namespace Ryujinx.Audio.Renderer.Utils.Math return m; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/Math/Matrix6x6.cs b/Ryujinx.Audio/Renderer/Utils/Math/Matrix6x6.cs index ff0123026a..415a81fdfb 100644 --- a/Ryujinx.Audio/Renderer/Utils/Math/Matrix6x6.cs +++ b/Ryujinx.Audio/Renderer/Utils/Math/Matrix6x6.cs @@ -94,4 +94,4 @@ namespace Ryujinx.Audio.Renderer.Utils.Math M66 = m66; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/Math/MatrixHelper.cs b/Ryujinx.Audio/Renderer/Utils/Math/MatrixHelper.cs index 66092e2b2c..209a81c46e 100644 --- a/Ryujinx.Audio/Renderer/Utils/Math/MatrixHelper.cs +++ b/Ryujinx.Audio/Renderer/Utils/Math/MatrixHelper.cs @@ -42,4 +42,4 @@ namespace Ryujinx.Audio.Renderer.Dsp }; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/Math/Vector6.cs b/Ryujinx.Audio/Renderer/Utils/Math/Vector6.cs index 303c5e9d06..81bcb6982a 100644 --- a/Ryujinx.Audio/Renderer/Utils/Math/Vector6.cs +++ b/Ryujinx.Audio/Renderer/Utils/Math/Vector6.cs @@ -53,4 +53,4 @@ namespace Ryujinx.Audio.Renderer.Utils.Math return left * new Vector6(right); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/SpanIOHelper.cs b/Ryujinx.Audio/Renderer/Utils/SpanIOHelper.cs index e459929cfb..103fb6a04f 100644 --- a/Ryujinx.Audio/Renderer/Utils/SpanIOHelper.cs +++ b/Ryujinx.Audio/Renderer/Utils/SpanIOHelper.cs @@ -168,4 +168,4 @@ namespace Ryujinx.Audio.Renderer.Utils return ref GetMemory(memory, id, count).Span[0]; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/SpanMemoryManager.cs b/Ryujinx.Audio/Renderer/Utils/SpanMemoryManager.cs index b0f38faaa8..2c48da6aae 100644 --- a/Ryujinx.Audio/Renderer/Utils/SpanMemoryManager.cs +++ b/Ryujinx.Audio/Renderer/Utils/SpanMemoryManager.cs @@ -40,4 +40,4 @@ namespace Ryujinx.Audio.Renderer.Utils return new SpanMemoryManager(MemoryMarshal.Cast(memory.Span)).Memory; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Renderer/Utils/SplitterHardwareDevice.cs b/Ryujinx.Audio/Renderer/Utils/SplitterHardwareDevice.cs index 08f34fd4c7..1839607899 100644 --- a/Ryujinx.Audio/Renderer/Utils/SplitterHardwareDevice.cs +++ b/Ryujinx.Audio/Renderer/Utils/SplitterHardwareDevice.cs @@ -55,4 +55,4 @@ namespace Ryujinx.Audio.Renderer.Utils } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/ResultCode.cs b/Ryujinx.Audio/ResultCode.cs index 20fc627052..8e0bfcb0c9 100644 --- a/Ryujinx.Audio/ResultCode.cs +++ b/Ryujinx.Audio/ResultCode.cs @@ -2,20 +2,20 @@ namespace Ryujinx.Audio { public enum ResultCode { - ModuleId = 153, + ModuleId = 153, ErrorCodeShift = 9, Success = 0, - DeviceNotFound = (1 << ErrorCodeShift) | ModuleId, - OperationFailed = (2 << ErrorCodeShift) | ModuleId, - UnsupportedSampleRate = (3 << ErrorCodeShift) | ModuleId, - WorkBufferTooSmall = (4 << ErrorCodeShift) | ModuleId, - BufferRingFull = (8 << ErrorCodeShift) | ModuleId, + DeviceNotFound = (1 << ErrorCodeShift) | ModuleId, + OperationFailed = (2 << ErrorCodeShift) | ModuleId, + UnsupportedSampleRate = (3 << ErrorCodeShift) | ModuleId, + WorkBufferTooSmall = (4 << ErrorCodeShift) | ModuleId, + BufferRingFull = (8 << ErrorCodeShift) | ModuleId, UnsupportedChannelConfiguration = (10 << ErrorCodeShift) | ModuleId, - InvalidUpdateInfo = (41 << ErrorCodeShift) | ModuleId, - InvalidAddressInfo = (42 << ErrorCodeShift) | ModuleId, - InvalidMixSorting = (43 << ErrorCodeShift) | ModuleId, - UnsupportedOperation = (513 << ErrorCodeShift) | ModuleId, + InvalidUpdateInfo = (41 << ErrorCodeShift) | ModuleId, + InvalidAddressInfo = (42 << ErrorCodeShift) | ModuleId, + InvalidMixSorting = (43 << ErrorCodeShift) | ModuleId, + UnsupportedOperation = (513 << ErrorCodeShift) | ModuleId, } -} +} \ No newline at end of file