From 1825bd87b4f0709ab79ed407f6c267ba3545456e Mon Sep 17 00:00:00 2001 From: Mary-nyan Date: Mon, 25 Jul 2022 20:46:33 +0200 Subject: [PATCH] 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. --- Ryujinx.Audio/AudioManager.cs | 2 +- .../Backends/Common/BackendHelper.cs | 2 +- .../Backends/Common/DynamicRingBuffer.cs | 2 +- .../Common/HardwareDeviceSessionOutputBase.cs | 2 +- .../CompatLayerHardwareDeviceDriver.cs | 2 +- .../CompatLayerHardwareDeviceSession.cs | 4 +- .../Backends/CompatLayer/Downmixing.cs | 18 ++--- .../Dummy/DummyHardwareDeviceDriver.cs | 2 +- .../Dummy/DummyHardwareDeviceSessionInput.cs | 2 +- Ryujinx.Audio/Common/AudioBuffer.cs | 2 +- Ryujinx.Audio/Common/AudioDeviceSession.cs | 2 +- Ryujinx.Audio/Common/AudioDeviceState.cs | 2 +- .../Common/AudioInputConfiguration.cs | 2 +- .../Common/AudioOutputConfiguration.cs | 2 +- Ryujinx.Audio/Common/AudioUserBuffer.cs | 2 +- Ryujinx.Audio/Common/SampleFormat.cs | 2 +- Ryujinx.Audio/Constants.cs | 2 +- Ryujinx.Audio/Input/AudioInputManager.cs | 8 +-- Ryujinx.Audio/Input/AudioInputSystem.cs | 2 +- .../Integration/HardwareDeviceImpl.cs | 6 +- Ryujinx.Audio/Integration/IHardwareDevice.cs | 2 +- .../Integration/IHardwareDeviceDriver.cs | 2 +- .../Integration/IHardwareDeviceSession.cs | 2 +- Ryujinx.Audio/Integration/IWritableEvent.cs | 2 +- Ryujinx.Audio/Output/AudioOutputManager.cs | 8 +-- Ryujinx.Audio/Output/AudioOutputSystem.cs | 10 +-- .../Common/AuxiliaryBufferAddresses.cs | 2 +- .../Renderer/Common/BehaviourParameter.cs | 2 +- Ryujinx.Audio/Renderer/Common/EdgeMatrix.cs | 2 +- Ryujinx.Audio/Renderer/Common/EffectType.cs | 2 +- .../Renderer/Common/MemoryPoolUserState.cs | 2 +- Ryujinx.Audio/Renderer/Common/NodeIdHelper.cs | 2 +- Ryujinx.Audio/Renderer/Common/NodeIdType.cs | 2 +- Ryujinx.Audio/Renderer/Common/NodeStates.cs | 2 +- .../Renderer/Common/PerformanceDetailType.cs | 2 +- .../Renderer/Common/PerformanceEntryType.cs | 2 +- Ryujinx.Audio/Renderer/Common/PlayState.cs | 2 +- .../Renderer/Common/ReverbEarlyMode.cs | 2 +- .../Renderer/Common/ReverbLateMode.cs | 2 +- Ryujinx.Audio/Renderer/Common/SinkType.cs | 2 +- .../Renderer/Common/UpdateDataHeader.cs | 2 +- .../Renderer/Common/VoiceUpdateState.cs | 2 +- Ryujinx.Audio/Renderer/Common/WaveBuffer.cs | 2 +- .../Renderer/Common/WorkBufferAllocator.cs | 6 +- .../Renderer/Device/VirtualDevice.cs | 2 +- .../Renderer/Device/VirtualDeviceSession.cs | 2 +- .../Device/VirtualDeviceSessionRegistry.cs | 2 +- Ryujinx.Audio/Renderer/Dsp/AdpcmHelper.cs | 2 +- Ryujinx.Audio/Renderer/Dsp/AudioProcessor.cs | 2 +- .../Renderer/Dsp/BiquadFilterHelper.cs | 2 +- .../Command/AdpcmDataSourceCommandVersion1.cs | 2 +- .../Dsp/Command/AuxiliaryBufferCommand.cs | 2 +- .../Dsp/Command/BiquadFilterCommand.cs | 2 +- .../Dsp/Command/CaptureBufferCommand.cs | 2 +- .../Dsp/Command/CircularBufferSinkCommand.cs | 2 +- .../Dsp/Command/ClearMixBufferCommand.cs | 2 +- .../Renderer/Dsp/Command/CommandList.cs | 2 +- .../Renderer/Dsp/Command/CommandType.cs | 2 +- .../Dsp/Command/CopyMixBufferCommand.cs | 2 +- .../Dsp/Command/DataSourceVersion2Command.cs | 2 +- .../Renderer/Dsp/Command/DelayCommand.cs | 26 +++---- .../Dsp/Command/DepopForMixBuffersCommand.cs | 2 +- .../Dsp/Command/DepopPrepareCommand.cs | 2 +- .../Renderer/Dsp/Command/DeviceSinkCommand.cs | 2 +- .../Command/DownMixSurroundToStereoCommand.cs | 2 +- .../Dsp/Command/GroupedBiquadFilterCommand.cs | 2 +- .../Renderer/Dsp/Command/ICommand.cs | 2 +- .../Dsp/Command/LimiterCommandVersion1.cs | 2 +- .../Dsp/Command/LimiterCommandVersion2.cs | 2 +- .../Renderer/Dsp/Command/MixCommand.cs | 2 +- .../Renderer/Dsp/Command/MixRampCommand.cs | 2 +- .../Dsp/Command/MixRampGroupedCommand.cs | 2 +- .../PcmFloatDataSourceCommandVersion1.cs | 2 +- .../PcmInt16DataSourceCommandVersion1.cs | 2 +- .../Dsp/Command/PerformanceCommand.cs | 2 +- .../Renderer/Dsp/Command/Reverb3dCommand.cs | 2 +- .../Renderer/Dsp/Command/ReverbCommand.cs | 2 +- .../Renderer/Dsp/Command/UpsampleCommand.cs | 2 +- .../Renderer/Dsp/Command/VolumeCommand.cs | 2 +- .../Renderer/Dsp/Command/VolumeRampCommand.cs | 2 +- .../Renderer/Dsp/DataSourceHelper.cs | 2 +- .../Renderer/Dsp/Effect/DecayDelay.cs | 2 +- .../Renderer/Dsp/Effect/DelayLine.cs | 2 +- .../Renderer/Dsp/Effect/DelayLineReverb3d.cs | 2 +- .../Renderer/Dsp/Effect/IDelayLine.cs | 2 +- .../Renderer/Dsp/FixedPointHelper.cs | 2 +- .../Renderer/Dsp/FloatingPointHelper.cs | 2 +- Ryujinx.Audio/Renderer/Dsp/PcmHelper.cs | 2 +- Ryujinx.Audio/Renderer/Dsp/ResamplerHelper.cs | 2 +- .../Renderer/Dsp/State/AdpcmLoopContext.cs | 2 +- .../Dsp/State/AuxiliaryBufferHeader.cs | 2 +- .../Renderer/Dsp/State/BiquadFilterState.cs | 2 +- .../Renderer/Dsp/State/DelayState.cs | 2 +- .../Renderer/Dsp/State/LimiterState.cs | 4 +- .../Renderer/Dsp/State/Reverb3dState.cs | 2 +- .../Renderer/Dsp/State/ReverbState.cs | 2 +- .../Parameter/AudioRendererConfiguration.cs | 2 +- .../Parameter/BehaviourErrorInfoOutStatus.cs | 2 +- .../Parameter/BiquadFilterParameter.cs | 2 +- .../Effect/AuxiliaryBufferParameter.cs | 2 +- .../Effect/BiquadFilterEffectParameter.cs | 2 +- .../Parameter/Effect/BufferMixerParameter.cs | 2 +- .../Parameter/Effect/DelayParameter.cs | 2 +- .../Parameter/Effect/LimiterParameter.cs | 2 +- .../Parameter/Effect/LimiterStatistics.cs | 2 +- .../Parameter/Effect/Reverb3dParameter.cs | 2 +- .../Parameter/Effect/ReverbParameter.cs | 2 +- .../Parameter/EffectInParameterVersion1.cs | 2 +- .../Parameter/EffectInParameterVersion2.cs | 2 +- .../Parameter/EffectOutStatusVersion1.cs | 2 +- .../Parameter/EffectOutStatusVersion2.cs | 2 +- .../Renderer/Parameter/EffectResultState.cs | 2 +- .../Renderer/Parameter/EffectState.cs | 2 +- .../Renderer/Parameter/IEffectInParameter.cs | 2 +- .../Renderer/Parameter/IEffectOutStatus.cs | 2 +- .../Parameter/MemoryPoolInParameter.cs | 2 +- .../Renderer/Parameter/MemoryPoolOutStatus.cs | 2 +- .../MixInParameterDirtyOnlyUpdate.cs | 2 +- .../Renderer/Parameter/MixParameter.cs | 2 +- .../Performance/PerformanceInParameter.cs | 2 +- .../Performance/PerformanceOutStatus.cs | 2 +- .../Parameter/RendererInfoOutStatus.cs | 2 +- .../Parameter/Sink/CircularBufferParameter.cs | 2 +- .../Parameter/Sink/DeviceParameter.cs | 2 +- .../Renderer/Parameter/SinkInParameter.cs | 2 +- .../Renderer/Parameter/SinkOutStatus.cs | 2 +- .../SplitterDestinationInParameter.cs | 2 +- .../Renderer/Parameter/SplitterInParameter.cs | 2 +- .../Parameter/SplitterInParameterHeader.cs | 2 +- .../VoiceChannelResourceInParameter.cs | 2 +- .../Renderer/Parameter/VoiceInParameter.cs | 2 +- .../Renderer/Parameter/VoiceOutStatus.cs | 2 +- .../Renderer/Server/AudioRenderSystem.cs | 70 +++++++++---------- .../Renderer/Server/AudioRendererManager.cs | 2 +- .../Renderer/Server/BehaviourContext.cs | 6 +- .../Renderer/Server/CommandBuffer.cs | 2 +- .../Renderer/Server/CommandGenerator.cs | 2 +- .../CommandProcessingTimeEstimatorVersion1.cs | 2 +- .../CommandProcessingTimeEstimatorVersion2.cs | 2 +- .../CommandProcessingTimeEstimatorVersion3.cs | 2 +- .../CommandProcessingTimeEstimatorVersion4.cs | 2 +- .../CommandProcessingTimeEstimatorVersion5.cs | 2 +- .../Server/Effect/AuxiliaryBufferEffect.cs | 2 +- .../Renderer/Server/Effect/BaseEffect.cs | 10 +-- .../Server/Effect/BiquadFilterEffect.cs | 2 +- .../Renderer/Server/Effect/BufferMixEffect.cs | 2 +- .../Server/Effect/CaptureBufferEffect.cs | 2 +- .../Renderer/Server/Effect/DelayEffect.cs | 2 +- .../Renderer/Server/Effect/EffectContext.cs | 2 +- .../Renderer/Server/Effect/LimiterEffect.cs | 2 +- .../Renderer/Server/Effect/Reverb3dEffect.cs | 4 +- .../Renderer/Server/Effect/ReverbEffect.cs | 2 +- .../Renderer/Server/Effect/UsageState.cs | 2 +- .../Server/ICommandProcessingTimeEstimator.cs | 2 +- .../Renderer/Server/MemoryPool/AddressInfo.cs | 15 ++-- .../Server/MemoryPool/MemoryPoolState.cs | 11 ++- .../Renderer/Server/MemoryPool/PoolMapper.cs | 6 +- .../Renderer/Server/Mix/MixContext.cs | 2 +- Ryujinx.Audio/Renderer/Server/Mix/MixState.cs | 2 +- .../Performance/IPerformanceDetailEntry.cs | 2 +- .../Server/Performance/IPerformanceEntry.cs | 2 +- .../Server/Performance/IPerformanceHeader.cs | 2 +- .../Performance/PerformanceDetailVersion1.cs | 2 +- .../Performance/PerformanceDetailVersion2.cs | 2 +- .../Performance/PerformanceEntryAddresses.cs | 2 +- .../Performance/PerformanceEntryVersion1.cs | 2 +- .../Performance/PerformanceEntryVersion2.cs | 2 +- .../PerformanceFrameHeaderVersion1.cs | 2 +- .../PerformanceFrameHeaderVersion2.cs | 2 +- .../Server/Performance/PerformanceManager.cs | 2 +- .../Performance/PerformanceManagerGeneric.cs | 4 +- .../Renderer/Server/RendererSystemContext.cs | 2 +- .../Renderer/Server/Sink/BaseSink.cs | 2 +- .../Server/Sink/CircularBufferSink.cs | 2 +- .../Renderer/Server/Sink/DeviceSink.cs | 2 +- .../Renderer/Server/Sink/SinkContext.cs | 2 +- .../Server/Splitter/SplitterContext.cs | 2 +- .../Server/Splitter/SplitterDestination.cs | 4 +- .../Renderer/Server/Splitter/SplitterState.cs | 2 +- Ryujinx.Audio/Renderer/Server/StateUpdater.cs | 6 +- .../Types/AudioRendererRenderingDevice.cs | 2 +- .../Renderer/Server/Types/PlayState.cs | 2 +- .../Server/Upsampler/UpsamplerManager.cs | 2 +- .../Server/Upsampler/UpsamplerState.cs | 2 +- .../Server/Voice/VoiceChannelResource.cs | 2 +- .../Renderer/Server/Voice/VoiceContext.cs | 2 +- .../Renderer/Server/Voice/VoiceState.cs | 6 +- .../Renderer/Server/Voice/WaveBuffer.cs | 2 +- .../Utils/AudioProcessorMemoryManager.cs | 5 +- Ryujinx.Audio/Renderer/Utils/BitArray.cs | 2 +- .../Renderer/Utils/FileHardwareDevice.cs | 2 +- Ryujinx.Audio/Renderer/Utils/Mailbox.cs | 2 +- .../Renderer/Utils/Math/Matrix2x2.cs | 2 +- .../Renderer/Utils/Math/Matrix6x6.cs | 2 +- .../Renderer/Utils/Math/MatrixHelper.cs | 2 +- Ryujinx.Audio/Renderer/Utils/Math/Vector6.cs | 2 +- Ryujinx.Audio/Renderer/Utils/SpanIOHelper.cs | 2 +- .../Renderer/Utils/SpanMemoryManager.cs | 2 +- .../Renderer/Utils/SplitterHardwareDevice.cs | 2 +- Ryujinx.Audio/ResultCode.cs | 22 +++--- 200 files changed, 306 insertions(+), 309 deletions(-) diff --git a/Ryujinx.Audio/AudioManager.cs b/Ryujinx.Audio/AudioManager.cs index 67a0d56b..c37ca4a3 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 124d8364..30db340f 100644 --- a/Ryujinx.Audio/Backends/Common/BackendHelper.cs +++ b/Ryujinx.Audio/Backends/Common/BackendHelper.cs @@ -23,4 +23,4 @@ namespace Ryujinx.Audio.Backends.Common return bufferSize / GetSampleSize(format) / channelCount; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs b/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs index ce329e45..9bf20d4b 100644 --- a/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs +++ b/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs @@ -163,4 +163,4 @@ namespace Ryujinx.Audio.Backends.Common } } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs b/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs index 39c46fdd..6fb3bee0 100644 --- a/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs +++ b/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs @@ -76,4 +76,4 @@ namespace Ryujinx.Audio.Backends.Common public virtual void UnregisterBuffer(AudioBuffer buffer) { } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs index c76628af..b6f45a3e 100644 --- a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs +++ b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceDriver.cs @@ -133,4 +133,4 @@ namespace Ryujinx.Audio.Backends.CompatLayer return direction == Direction.Input || direction == Direction.Output; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs index 9e4728e5..ff3b0988 100644 --- a/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs +++ b/Ryujinx.Audio/Backends/CompatLayer/CompatLayerHardwareDeviceSession.cs @@ -81,7 +81,7 @@ namespace Ryujinx.Audio.Backends.CompatLayer { BufferTag = buffer.BufferTag, DataPointer = buffer.DataPointer, - DataSize = (ulong)downmixedBuffer.Length + DataSize = (ulong)downmixedBuffer.Length }; bool result = _realSession.RegisterBuffer(fakeBuffer, downmixedBuffer); @@ -120,4 +120,4 @@ namespace Ryujinx.Audio.Backends.CompatLayer return _realSession.WasBufferFullyConsumed(buffer); } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Backends/CompatLayer/Downmixing.cs b/Ryujinx.Audio/Backends/CompatLayer/Downmixing.cs index 08f92010..6959c158 100644 --- a/Ryujinx.Audio/Backends/CompatLayer/Downmixing.cs +++ b/Ryujinx.Audio/Backends/CompatLayer/Downmixing.cs @@ -24,11 +24,11 @@ namespace Ryujinx.Audio.Backends.CompatLayer public short Right; } - private const int Q15Bits = 16; - private const int RawQ15One = 1 << Q15Bits; - private const int RawQ15HalfOne = (int)(0.5f * RawQ15One); - private const int Minus3dBInQ15 = (int)(0.707f * RawQ15One); - private const int Minus6dBInQ15 = (int)(0.501f * RawQ15One); + private const int Q15Bits = 16; + private const int RawQ15One = 1 << Q15Bits; + private const int RawQ15HalfOne = (int)(0.5f * RawQ15One); + private const int Minus3dBInQ15 = (int)(0.707f * RawQ15One); + private const int Minus6dBInQ15 = (int)(0.501f * RawQ15One); private const int Minus12dBInQ15 = (int)(0.251f * RawQ15One); private static readonly int[] DefaultSurroundToStereoCoefficients = new int[4] @@ -46,8 +46,8 @@ namespace Ryujinx.Audio.Backends.CompatLayer }; private const int SurroundChannelCount = 6; - private const int StereoChannelCount = 2; - private const int MonoChannelCount = 1; + private const int StereoChannelCount = 2; + private const int MonoChannelCount = 1; [MethodImpl(MethodImplOptions.AggressiveInlining)] private static ReadOnlySpan 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 b747c5c3..eecc95f5 100644 --- a/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceDriver.cs +++ b/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceDriver.cs @@ -84,4 +84,4 @@ namespace Ryujinx.Audio.Backends.Dummy return channelCount == 1 || channelCount == 2 || channelCount == 6; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceSessionInput.cs b/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceSessionInput.cs index 59247015..845713a1 100644 --- a/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceSessionInput.cs +++ b/Ryujinx.Audio/Backends/Dummy/DummyHardwareDeviceSessionInput.cs @@ -64,4 +64,4 @@ namespace Ryujinx.Audio.Backends.Dummy return true; } } -} +} \ No newline at end of file diff --git a/Ryujinx.Audio/Common/AudioBuffer.cs b/Ryujinx.Audio/Common/AudioBuffer.cs index 87a7d5f3..b79401b7 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 32234076..07b0a898 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 32745a2e..b3f968da 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 4da8e572..d3cfdd47 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 594f1225..e17e1757 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 bb71165f..50ab67fa 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 a266ab44..901410a2 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 e8c06aa7..7d2ffa57 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 d9e50b7e..ac012c4a 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 97b7ba3b..b3ca0fd6 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 e95ca390..552f1ab2 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 f9ade9db..300de8c5 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 3930997f..11de9f23 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 f29c109c..400daec0 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 a3b3bc0b..9a12e3d2 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 3e07e750..8c21f76a 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 dc0006c2..93df87aa 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 b7b97d5d..96647405 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 02558883..270f84d5 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 3beb6239..24a9350f 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 63e51ea6..2c50b9eb 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 12fb9427..590731c3 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 76fba54b..a999e3ad 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 26c24ce4..69b58f6b 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 8ed61fb2..45748d60 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 83cbd5d6..8467ed8d 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 e7ce0557..bde72aae 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 3ae19374..4a6929e0 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 969f4fe7..aa768562 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 592585b0..8aa88165 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 7d7a3607..2e17201e 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 df085557..70dbfa94 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 608381af..f52c2f4c 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 9c38fa48..0d00e838 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 e1b4e352..922ce4e3 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 8784cc63..2fa030a8 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 09fa71ed..db35d26d 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 85bb03fe..927e45ad 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 a7c4ebac..f6638a9a 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 5e89899b..2f58957d 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 1a51a1fb..98460ff1 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 a2113892..1ad629f4 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 fc21c86b..cfa5400c 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 4ddfc6ee..d68f3def 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 af4a9386..e9f7f943 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 b179b50d..95aec99d 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 6ccc69dd..c3530db1 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 64e8f4da..e8c3ba24 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 83ea386e..dfe7f886 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 f5f83526..330b63a6 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 f5cc3659..f602262e 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 cb468199..8f11da95 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 38fc5127..eb446a2b 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 29e13993..1e37ff71 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 cd3d3f3c..a34fbc56 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 23fb60b9..d75da6f9 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 7f83c75e..ae1ab12c 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 5c956b89..dddd2511 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 c50ff6ea..98394a09 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 79aeb740..ebc2eb1b 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 da869ffc..d5030996 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 e6fc1b67..06af9f6f 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 6d09ffa7..97bb0f50 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 483f4254..7c48a511 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 e6bb2f76..8483f6d4 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 232f58e4..c2f94474 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 dfd706f9..04809245 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 06684186..130706d1 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 6502e09f..0056ac5c 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 d75e07a4..e2947891 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 092a4df9..ffda8b1a 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 58d3db20..eda57326 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 7253fdc9..37e066bf 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 2b566408..56890ebe 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 30096f0e..a2ac9d26 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 b408e294..fd902525 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 a618c1c1..0d0ff2ae 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 2b4ab95f..226def46 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 f2453f17..1eec3e41 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 454e8735..4de2e078 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 f9ef201f..821a135e 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 97bbc80c..4e8d11e4 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 f9a32b3f..4220e6d5 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 c56fa078..2a1e7f83 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 0ac0a29c..92ed13ff 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 d4641b44..c0646603 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 878fb2f1..1ffabe05 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 d3697bee..359cd4c0 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 5a0565dc..aba7dcd6 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 697583b1..ef86015f 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 65f265a3..36f28677 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 b12a941a..73e0e9bb 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 49b70e50..b03559eb 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 a55f6748..72332c17 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 0c4b8a64..0bce94a2 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 969b2e2d..af4c02f2 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 23574a78..c78ce595 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 f61d105b..baf049fb 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 95bc3422..e5419f70 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 acdcc690..250012d1 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 80247cf4..5e6a33ac 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 663112b8..f2c9768b 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 b3a4bae1..bd96c22b 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 30cfb9af..911ba6d8 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 703c3e6d..bdd1ca45 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 74d13220..a5addbcb 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 60250858..242e3843 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 a78937d0..29a6e261 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 733b5ad7..c0954cda 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 25281d86..5b9a969a 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 806f7fa8..0f9a3aa3 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 839d6eb6..64bbe080 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 e72d836f..a42ea833 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 46ff2a4c..7c02d65f 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 d1e6b2e9..abeadacc 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 a8af236d..1ee4eb53 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 cf88679e..426b861c 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 50c1b072..96c43092 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 8e808e4c..0220497d 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 b117d5aa..dbae17a9 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 6cff1a25..6a863237 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 2be1e7c5..c4b4ba31 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 a7c74983..be9d3584 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 5eab73bc..904b56f6 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 23bf6fe0..3fbdc58d 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 878665f1..41720415 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 c46944c0..aa3d9795 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 1b43d92f..514279f1 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 6bb1e160..32c52dc4 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 05447e57..15800c99 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 13f476d6..6c6e2828 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 b2a0b84a..2385f46f 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 70a8b3f9..961d92aa 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 46b2a9a3..16406527 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 5c75ecd5..35314aca 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 b987f7c8..de91046d 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 d6cb9cfa..82c0a055 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 5be4b4ed..c445798d 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 43cabb7d..3f5d70bc 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 619f3110..bfb6528b 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 3e2f7326..6e17ef3d 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 782f1abb..473fddb8 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 6fdf8fc2..e1543fd1 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 2caf10b8..8648aa2c 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 377f4384..e365a86c 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 fa1ae44a..5fd6b2b9 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 6abdd2d6..69466bab 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 382f34d8..cf0fc067 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 6965803f..cda6f737 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 12540ecb..146e6781 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 ffabf467..dbe59cb0 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 a0178187..9888a4cc 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 deacd8cc..21876b4b 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 a8a6dfc8..22704c0d 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 26d4ec8e..05ecda9b 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 d24b96a2..1b8d8668 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 a1c7e914..fa2d3216 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 7437fb05..49d4b3ce 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 8c65538b..5fe6bff0 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 2eab2096..a1822968 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 fa5c74b6..f996441c 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 43281f70..18e77391 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 09085001..16456780 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 d36c5e26..f7b63997 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 09775798..722d8c4b 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 9ad16c94..970e145e 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 951984d8..b57d3990 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 1000e20c..72f19a67 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 cf599eef..c074e4a7 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 da3f07ee..15a0c6ba 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 a20b7902..0514c355 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 8d4a6db7..5ad27b0b 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 dbae31bf..25cc34a8 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 4413b15f..b37988fe 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 e3039810..065e4838 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 a34680e3..81736630 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 416a97a6..1c57b71b 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 8b816bb4..004b5aa2 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 e6829766..4bf7dd28 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 b9dba7ee..973f0672 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 a9c8210f..8b105477 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 fb5c687e..830b36ee 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 06048918..35c71ae3 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 7a6edab1..5b513aff 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 ff012302..415a81fd 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 66092e2b..209a81c4 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 303c5e9d..81bcb698 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 e459929c..103fb6a0 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 b0f38faa..2c48da6a 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 08f34fd4..18396078 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 20fc6270..8e0bfcb0 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