Quellcode durchsuchen

misc: Reformat Ryujinx.Audio with dotnet-format (#3485)

This is the first commit of a series of reformat around the codebase as
discussed internally some weeks ago.

This project being one that isn't touched that much, it shouldn't cause
conflict with any opened PRs.
Mary-nyan vor 3 Jahren
Ursprung
Commit
1825bd87b4
100 geänderte Dateien mit 136 neuen und 136 gelöschten Zeilen
  1. 1 1
      Ryujinx.Audio/AudioManager.cs
  2. 1 1
      Ryujinx.Audio/Backends/Common/BackendHelper.cs
  3. 1 1
      Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs
  4. 1 1
      Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs
  5. 1 1
      Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs
  6. 2 2
      Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs
  7. 9 9
      Ryujinx.Audio/Backends/CompatLayer/Downmixing.cs
  8. 1 1
      Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceDriver.cs
  9. 1 1
      Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceSessionInput.cs
  10. 1 1
      Ryujinx.Audio/Common/AudioBuffer.cs
  11. 1 1
      Ryujinx.Audio/Common/AudioDeviceSession.cs
  12. 1 1
      Ryujinx.Audio/Common/AudioDeviceState.cs
  13. 1 1
      Ryujinx.Audio/Common/AudioInputConfiguration.cs
  14. 1 1
      Ryujinx.Audio/Common/AudioOutputConfiguration.cs
  15. 1 1
      Ryujinx.Audio/Common/AudioUserBuffer.cs
  16. 1 1
      Ryujinx.Audio/Common/SampleFormat.cs
  17. 1 1
      Ryujinx.Audio/Constants.cs
  18. 4 4
      Ryujinx.Audio/Input/AudioInputManager.cs
  19. 1 1
      Ryujinx.Audio/Input/AudioInputSystem.cs
  20. 3 3
      Ryujinx.Audio/Integration/HardwareDeviceImpl.cs
  21. 1 1
      Ryujinx.Audio/Integration/IHardwareDevice.cs
  22. 1 1
      Ryujinx.Audio/Integration/IHardwareDeviceDriver.cs
  23. 1 1
      Ryujinx.Audio/Integration/IHardwareDeviceSession.cs
  24. 1 1
      Ryujinx.Audio/Integration/IWritableEvent.cs
  25. 4 4
      Ryujinx.Audio/Output/AudioOutputManager.cs
  26. 5 5
      Ryujinx.Audio/Output/AudioOutputSystem.cs
  27. 1 1
      Ryujinx.Audio/Renderer/Common/AuxiliaryBufferAddresses.cs
  28. 1 1
      Ryujinx.Audio/Renderer/Common/BehaviourParameter.cs
  29. 1 1
      Ryujinx.Audio/Renderer/Common/EdgeMatrix.cs
  30. 1 1
      Ryujinx.Audio/Renderer/Common/EffectType.cs
  31. 1 1
      Ryujinx.Audio/Renderer/Common/MemoryPoolUserState.cs
  32. 1 1
      Ryujinx.Audio/Renderer/Common/NodeIdHelper.cs
  33. 1 1
      Ryujinx.Audio/Renderer/Common/NodeIdType.cs
  34. 1 1
      Ryujinx.Audio/Renderer/Common/NodeStates.cs
  35. 1 1
      Ryujinx.Audio/Renderer/Common/PerformanceDetailType.cs
  36. 1 1
      Ryujinx.Audio/Renderer/Common/PerformanceEntryType.cs
  37. 1 1
      Ryujinx.Audio/Renderer/Common/PlayState.cs
  38. 1 1
      Ryujinx.Audio/Renderer/Common/ReverbEarlyMode.cs
  39. 1 1
      Ryujinx.Audio/Renderer/Common/ReverbLateMode.cs
  40. 1 1
      Ryujinx.Audio/Renderer/Common/SinkType.cs
  41. 1 1
      Ryujinx.Audio/Renderer/Common/UpdateDataHeader.cs
  42. 1 1
      Ryujinx.Audio/Renderer/Common/VoiceUpdateState.cs
  43. 1 1
      Ryujinx.Audio/Renderer/Common/WaveBuffer.cs
  44. 3 3
      Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs
  45. 1 1
      Ryujinx.Audio/Renderer/Device/VirtualDevice.cs
  46. 1 1
      Ryujinx.Audio/Renderer/Device/VirtualDeviceSession.cs
  47. 1 1
      Ryujinx.Audio/Renderer/Device/VirtualDeviceSessionRegistry.cs
  48. 1 1
      Ryujinx.Audio/Renderer/Dsp/AdpcmHelper.cs
  49. 1 1
      Ryujinx.Audio/Renderer/Dsp/AudioProcessor.cs
  50. 1 1
      Ryujinx.Audio/Renderer/Dsp/BiquadFilterHelper.cs
  51. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/AdpcmDataSourceCommandVersion1.cs
  52. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/AuxiliaryBufferCommand.cs
  53. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/BiquadFilterCommand.cs
  54. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/CaptureBufferCommand.cs
  55. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/CircularBufferSinkCommand.cs
  56. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/ClearMixBufferCommand.cs
  57. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/CommandList.cs
  58. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/CommandType.cs
  59. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/CopyMixBufferCommand.cs
  60. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/DataSourceVersion2Command.cs
  61. 13 13
      Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs
  62. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/DepopForMixBuffersCommand.cs
  63. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/DepopPrepareCommand.cs
  64. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/DeviceSinkCommand.cs
  65. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/DownMixSurroundToStereoCommand.cs
  66. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/GroupedBiquadFilterCommand.cs
  67. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/ICommand.cs
  68. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion1.cs
  69. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion2.cs
  70. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/MixCommand.cs
  71. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/MixRampCommand.cs
  72. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/MixRampGroupedCommand.cs
  73. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/PcmFloatDataSourceCommandVersion1.cs
  74. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/PcmInt16DataSourceCommandVersion1.cs
  75. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs
  76. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/Reverb3dCommand.cs
  77. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/ReverbCommand.cs
  78. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/UpsampleCommand.cs
  79. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/VolumeCommand.cs
  80. 1 1
      Ryujinx.Audio/Renderer/Dsp/Command/VolumeRampCommand.cs
  81. 1 1
      Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs
  82. 1 1
      Ryujinx.Audio/Renderer/Dsp/Effect/DecayDelay.cs
  83. 1 1
      Ryujinx.Audio/Renderer/Dsp/Effect/DelayLine.cs
  84. 1 1
      Ryujinx.Audio/Renderer/Dsp/Effect/DelayLineReverb3d.cs
  85. 1 1
      Ryujinx.Audio/Renderer/Dsp/Effect/IDelayLine.cs
  86. 1 1
      Ryujinx.Audio/Renderer/Dsp/FixedPointHelper.cs
  87. 1 1
      Ryujinx.Audio/Renderer/Dsp/FloatingPointHelper.cs
  88. 1 1
      Ryujinx.Audio/Renderer/Dsp/PcmHelper.cs
  89. 1 1
      Ryujinx.Audio/Renderer/Dsp/ResamplerHelper.cs
  90. 1 1
      Ryujinx.Audio/Renderer/Dsp/State/AdpcmLoopContext.cs
  91. 1 1
      Ryujinx.Audio/Renderer/Dsp/State/AuxiliaryBufferHeader.cs
  92. 1 1
      Ryujinx.Audio/Renderer/Dsp/State/BiquadFilterState.cs
  93. 1 1
      Ryujinx.Audio/Renderer/Dsp/State/DelayState.cs
  94. 2 2
      Ryujinx.Audio/Renderer/Dsp/State/LimiterState.cs
  95. 1 1
      Ryujinx.Audio/Renderer/Dsp/State/Reverb3dState.cs
  96. 1 1
      Ryujinx.Audio/Renderer/Dsp/State/ReverbState.cs
  97. 1 1
      Ryujinx.Audio/Renderer/Parameter/AudioRendererConfiguration.cs
  98. 1 1
      Ryujinx.Audio/Renderer/Parameter/BehaviourErrorInfoOutStatus.cs
  99. 1 1
      Ryujinx.Audio/Renderer/Parameter/BiquadFilterParameter.cs
  100. 1 1
      Ryujinx.Audio/Renderer/Parameter/Effect/AuxiliaryBufferParameter.cs

+ 1 - 1
Ryujinx.Audio/AudioManager.cs

@@ -129,4 +129,4 @@ namespace Ryujinx.Audio
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Backends/Common/BackendHelper.cs

@@ -23,4 +23,4 @@ namespace Ryujinx.Audio.Backends.Common
             return bufferSize / GetSampleSize(format) / channelCount;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs

@@ -163,4 +163,4 @@ namespace Ryujinx.Audio.Backends.Common
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs

@@ -76,4 +76,4 @@ namespace Ryujinx.Audio.Backends.Common
 
         public virtual void UnregisterBuffer(AudioBuffer buffer) { }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs

@@ -133,4 +133,4 @@ namespace Ryujinx.Audio.Backends.CompatLayer
             return direction == Direction.Input || direction == Direction.Output;
         }
     }
-}
+}

+ 2 - 2
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);
         }
     }
-}
+}

+ 9 - 9
Ryujinx.Audio/Backends/CompatLayer/Downmixing.cs

@@ -24,11 +24,11 @@ namespace Ryujinx.Audio.Backends.CompatLayer
             public short Right;
         }
 
-        private const int Q15Bits        = 16;
-        private const int RawQ15One      = 1 << Q15Bits;
-        private const int RawQ15HalfOne  = (int)(0.5f * RawQ15One);
-        private const int Minus3dBInQ15  = (int)(0.707f * RawQ15One);
-        private const int Minus6dBInQ15  = (int)(0.501f * RawQ15One);
+        private const int Q15Bits = 16;
+        private const int RawQ15One = 1 << Q15Bits;
+        private const int RawQ15HalfOne = (int)(0.5f * RawQ15One);
+        private const int Minus3dBInQ15 = (int)(0.707f * RawQ15One);
+        private const int Minus6dBInQ15 = (int)(0.501f * RawQ15One);
         private const int Minus12dBInQ15 = (int)(0.251f * RawQ15One);
 
         private static readonly int[] DefaultSurroundToStereoCoefficients = new int[4]
@@ -46,8 +46,8 @@ namespace Ryujinx.Audio.Backends.CompatLayer
         };
 
         private const int SurroundChannelCount = 6;
-        private const int StereoChannelCount   = 2;
-        private const int MonoChannelCount     = 1;
+        private const int StereoChannelCount = 2;
+        private const int MonoChannelCount = 1;
 
         [MethodImpl(MethodImplOptions.AggressiveInlining)]
         private static ReadOnlySpan<Channel51FormatPCM16> GetSurroundBuffer(ReadOnlySpan<short> data)
@@ -86,7 +86,7 @@ namespace Ryujinx.Audio.Backends.CompatLayer
             {
                 Channel51FormatPCM16 channel = channels[i];
 
-                downmixedBuffer[i * 2]     = DownMixSurroundToStereo(coefficients, channel.BackLeft, channel.LowFrequency, channel.FrontCenter, channel.FrontLeft);
+                downmixedBuffer[i * 2] = DownMixSurroundToStereo(coefficients, channel.BackLeft, channel.LowFrequency, channel.FrontCenter, channel.FrontLeft);
                 downmixedBuffer[i * 2 + 1] = DownMixSurroundToStereo(coefficients, channel.BackRight, channel.LowFrequency, channel.FrontCenter, channel.FrontRight);
             }
 
@@ -122,4 +122,4 @@ namespace Ryujinx.Audio.Backends.CompatLayer
             return DownMixSurroundToStereo(DefaultSurroundToStereoCoefficients, data);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceDriver.cs

@@ -84,4 +84,4 @@ namespace Ryujinx.Audio.Backends.Dummy
             return channelCount == 1 || channelCount == 2 || channelCount == 6;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceSessionInput.cs

@@ -64,4 +64,4 @@ namespace Ryujinx.Audio.Backends.Dummy
             return true;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Common/AudioBuffer.cs

@@ -34,4 +34,4 @@ namespace Ryujinx.Audio.Common
         /// </summary>
         public byte[] Data;
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Common/AudioDeviceSession.cs

@@ -513,4 +513,4 @@ namespace Ryujinx.Audio.Common
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Common/AudioDeviceState.cs

@@ -15,4 +15,4 @@ namespace Ryujinx.Audio.Common
         /// </summary>
         Stopped
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Common/AudioInputConfiguration.cs

@@ -26,4 +26,4 @@ namespace Ryujinx.Audio.Common
         /// </summary>
         private ushort _reserved;
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Common/AudioOutputConfiguration.cs

@@ -34,4 +34,4 @@ namespace Ryujinx.Audio.Common
         /// </summary>
         public AudioDeviceState AudioOutState;
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Common/AudioUserBuffer.cs

@@ -33,4 +33,4 @@ namespace Ryujinx.Audio.Common
         /// </summary>
         public ulong DataOffset;
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Common/SampleFormat.cs

@@ -40,4 +40,4 @@ namespace Ryujinx.Audio.Common
         /// </summary>
         Adpcm = 6
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Constants.cs

@@ -172,4 +172,4 @@ namespace Ryujinx.Audio
             0.707f,
         };
     }
-}
+}

+ 4 - 4
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
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Input/AudioInputSystem.cs

@@ -389,4 +389,4 @@ namespace Ryujinx.Audio.Input
             }
         }
     }
-}
+}

+ 3 - 3
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
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Integration/IHardwareDevice.cs

@@ -52,4 +52,4 @@ namespace Ryujinx.Audio.Integration
             return channelCount != Constants.ChannelCountMax;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Integration/IHardwareDeviceDriver.cs

@@ -31,4 +31,4 @@ namespace Ryujinx.Audio.Integration
             return this;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Integration/IHardwareDeviceSession.cs

@@ -25,4 +25,4 @@ namespace Ryujinx.Audio.Integration
 
         void PrepareToClose();
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Integration/IWritableEvent.cs

@@ -15,4 +15,4 @@ namespace Ryujinx.Audio.Integration
         /// </summary>
         void Clear();
     }
-}
+}

+ 4 - 4
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
             }
         }
     }
-}
+}

+ 5 - 5
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
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/AuxiliaryBufferAddresses.cs

@@ -10,4 +10,4 @@ namespace Ryujinx.Audio.Renderer.Common
         public ulong ReturnBufferInfo;
         public ulong ReturnBufferInfoBase;
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/BehaviourParameter.cs

@@ -47,4 +47,4 @@ namespace Ryujinx.Audio.Renderer.Common
             public ulong ExtraErrorInfo;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/EdgeMatrix.cs

@@ -147,4 +147,4 @@ namespace Ryujinx.Audio.Renderer.Common
             return _nodeCount;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/EffectType.cs

@@ -50,4 +50,4 @@ namespace Ryujinx.Audio.Renderer.Common
         /// </summary>
         CaptureBuffer
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/MemoryPoolUserState.cs

@@ -40,4 +40,4 @@ namespace Ryujinx.Audio.Renderer.Common
         /// </summary>
         Released = 6
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/NodeIdHelper.cs

@@ -25,4 +25,4 @@ namespace Ryujinx.Audio.Renderer.Common
             return (nodeId >> 16) & 0xFFF;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/NodeIdType.cs

@@ -30,4 +30,4 @@ namespace Ryujinx.Audio.Renderer.Common
         /// </summary>
         Performance = 15
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/NodeStates.cs

@@ -226,4 +226,4 @@ namespace Ryujinx.Audio.Renderer.Common
             return true;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/PerformanceDetailType.cs

@@ -16,4 +16,4 @@ namespace Ryujinx.Audio.Renderer.Common
         Limiter,
         CaptureBuffer
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/PerformanceEntryType.cs

@@ -8,4 +8,4 @@ namespace Ryujinx.Audio.Renderer.Common
         FinalMix,
         Sink
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/PlayState.cs

@@ -20,4 +20,4 @@ namespace Ryujinx.Audio.Renderer.Common
         /// </summary>
         Pause
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/ReverbEarlyMode.cs

@@ -30,4 +30,4 @@ namespace Ryujinx.Audio.Renderer.Common
         /// </summary>
         Disabled
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/ReverbLateMode.cs

@@ -35,4 +35,4 @@ namespace Ryujinx.Audio.Renderer.Common
         /// </summary>
         Limit = NoDelay
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/SinkType.cs

@@ -20,4 +20,4 @@ namespace Ryujinx.Audio.Renderer.Common
         /// </summary>
         CircularBuffer
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/UpdateDataHeader.cs

@@ -30,4 +30,4 @@ namespace Ryujinx.Audio.Renderer.Common
             TotalSize = (uint)Unsafe.SizeOf<UpdateDataHeader>();
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/VoiceUpdateState.cs

@@ -101,4 +101,4 @@ namespace Ryujinx.Audio.Renderer.Common
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Common/WaveBuffer.cs

@@ -79,4 +79,4 @@ namespace Ryujinx.Audio.Renderer.Common
         /// </summary>
         private ushort _padding;
     }
-}
+}

+ 3 - 3
Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs

@@ -41,7 +41,7 @@ namespace Ryujinx.Audio.Renderer.Common
             return Memory<byte>.Empty;
         }
 
-        public Memory<T> Allocate<T>(ulong count, int align) where T: unmanaged
+        public Memory<T> Allocate<T>(ulong count, int align) where T : unmanaged
         {
             Memory<byte> allocatedMemory = Allocate((ulong)Unsafe.SizeOf<T>() * count, align);
 
@@ -53,9 +53,9 @@ namespace Ryujinx.Audio.Renderer.Common
             return SpanMemoryManager<T>.Cast(allocatedMemory);
         }
 
-        public static ulong GetTargetSize<T>(ulong currentSize, ulong count, int align) where T: unmanaged
+        public static ulong GetTargetSize<T>(ulong currentSize, ulong count, int align) where T : unmanaged
         {
             return BitUtils.AlignUp(currentSize, align) + (ulong)Unsafe.SizeOf<T>() * count;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Device/VirtualDevice.cs

@@ -86,4 +86,4 @@ namespace Ryujinx.Audio.Renderer.Device
             return Name;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Device/VirtualDeviceSession.cs

@@ -24,4 +24,4 @@ namespace Ryujinx.Audio.Renderer.Device
             Device = virtualDevice;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Device/VirtualDeviceSessionRegistry.cs

@@ -59,4 +59,4 @@ namespace Ryujinx.Audio.Renderer.Device
             return virtualDeviceSession;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/AdpcmHelper.cs

@@ -199,4 +199,4 @@ namespace Ryujinx.Audio.Renderer.Dsp
             return decodedCount;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/AudioProcessor.cs

@@ -268,4 +268,4 @@ namespace Ryujinx.Audio.Renderer.Dsp
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/BiquadFilterHelper.cs

@@ -80,4 +80,4 @@ namespace Ryujinx.Audio.Renderer.Dsp
             }
         }
     }
-}
+}

+ 1 - 1
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);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/AuxiliaryBufferCommand.cs

@@ -170,4 +170,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
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);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/CaptureBufferCommand.cs

@@ -134,4 +134,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/CircularBufferSinkCommand.cs

@@ -74,4 +74,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/ClearMixBufferCommand.cs

@@ -21,4 +21,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             context.ClearBuffers();
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/CommandList.cs

@@ -153,4 +153,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             _buffersMemoryHandle.Dispose();
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/CommandType.cs

@@ -33,4 +33,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
         GroupedBiquadFilter,
         CaptureBuffer
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/CopyMixBufferCommand.cs

@@ -29,4 +29,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             context.CopyBuffer(OutputBufferIndex, InputBufferIndex);
         }
     }
-}
+}

+ 1 - 1
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);
         }
     }
-}
+}

+ 13 - 13
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<Vector4, float>(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);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/DepopForMixBuffersCommand.cs

@@ -90,4 +90,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/DepopPrepareCommand.cs

@@ -54,4 +54,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/DeviceSinkCommand.cs

@@ -88,4 +88,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/DownMixSurroundToStereoCommand.cs

@@ -65,4 +65,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             context.ClearBuffer(OutputBufferIndices[5]);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/GroupedBiquadFilterCommand.cs

@@ -60,4 +60,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/ICommand.cs

@@ -17,4 +17,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             return false;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion1.cs

@@ -143,4 +143,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/LimiterCommandVersion2.cs

@@ -162,4 +162,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/MixCommand.cs

@@ -134,4 +134,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             ProcessMix(outputBuffer, inputBuffer);
         }
     }
-}
+}

+ 1 - 1
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);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/MixRampGroupedCommand.cs

@@ -88,4 +88,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
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);
         }
     }
-}
+}

+ 1 - 1
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);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/PerformanceCommand.cs

@@ -44,4 +44,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/Reverb3dCommand.cs

@@ -251,4 +251,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             ProcessReverb3d(context, ref state);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/ReverbCommand.cs

@@ -276,4 +276,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             ProcessReverb(context, ref state);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/UpsampleCommand.cs

@@ -66,4 +66,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/VolumeCommand.cs

@@ -134,4 +134,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             ProcessVolume(outputBuffer, inputBuffer);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Command/VolumeRampCommand.cs

@@ -53,4 +53,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
             ProcessVolumeRamp(outputBuffer, inputBuffer, (int)context.SampleCount);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/DataSourceHelper.cs

@@ -463,4 +463,4 @@ namespace Ryujinx.Audio.Renderer.Dsp
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Effect/DecayDelay.cs

@@ -49,4 +49,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Effect
             return _delayLine.Tap(sampleIndex);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Effect/DelayLine.cs

@@ -75,4 +75,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Effect
             return TapUnsafe(sampleIndex, -1);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Effect/DelayLineReverb3d.cs

@@ -73,4 +73,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Effect
             return TapUnsafe(sampleIndex, -1);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/Effect/IDelayLine.cs

@@ -34,4 +34,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.Effect
             return (uint)MathF.Round(sampleRate * delayTime);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/FixedPointHelper.cs

@@ -30,4 +30,4 @@ namespace Ryujinx.Audio.Renderer.Dsp
             return ToInt(value + half, qBits);
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/FloatingPointHelper.cs

@@ -64,4 +64,4 @@ namespace Ryujinx.Audio.Renderer.Dsp
             return MathF.Sin(DegreesToRadians(value));
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/PcmHelper.cs

@@ -75,4 +75,4 @@ namespace Ryujinx.Audio.Renderer.Dsp
             return (short)value;
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/ResamplerHelper.cs

@@ -627,4 +627,4 @@ namespace Ryujinx.Audio.Renderer.Dsp
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/State/AdpcmLoopContext.cs

@@ -9,4 +9,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State
         public short History0;
         public short History1;
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/State/AuxiliaryBufferHeader.cs

@@ -71,4 +71,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State
         public AuxiliaryBufferInfo CpuBufferInfo;
         public AuxiliaryBufferInfo DspBufferInfo;
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/State/BiquadFilterState.cs

@@ -10,4 +10,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State
         public float State2;
         public float State3;
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/State/DelayState.cs

@@ -64,4 +64,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State
             }
         }
     }
-}
+}

+ 2 - 2
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) { }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/State/Reverb3dState.cs

@@ -116,4 +116,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Dsp/State/ReverbState.cs

@@ -201,4 +201,4 @@ namespace Ryujinx.Audio.Renderer.Dsp.State
             }
         }
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Parameter/AudioRendererConfiguration.cs

@@ -96,4 +96,4 @@ namespace Ryujinx.Audio.Renderer.Parameter
         /// <seealso cref="Server.BehaviourContext"/>
         public int Revision;
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Parameter/BehaviourErrorInfoOutStatus.cs

@@ -27,4 +27,4 @@ namespace Ryujinx.Audio.Renderer.Parameter
         /// </summary>
         private unsafe fixed uint _reserved[3];
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Parameter/BiquadFilterParameter.cs

@@ -31,4 +31,4 @@ namespace Ryujinx.Audio.Renderer.Parameter
         /// <remarks>a0 = 1</remarks>
         public Array2<short> Denominator;
     }
-}
+}

+ 1 - 1
Ryujinx.Audio/Renderer/Parameter/Effect/AuxiliaryBufferParameter.cs

@@ -81,4 +81,4 @@ namespace Ryujinx.Audio.Renderer.Parameter.Effect
         /// <remarks>This is unused.</remarks>
         public uint MixBufferSampleCount;
     }
-}
+}

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.