diff options
| author | Mary-nyan <mary@mary.zone> | 2022-07-25 20:46:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-25 15:46:33 -0300 |
| commit | 1825bd87b4f0709ab79ed407f6c267ba3545456e (patch) | |
| tree | 3309fa4aea0cb8d17715a3ee5f5e04acd376681f /Ryujinx.Audio/Renderer/Server | |
| parent | 62f8ceb60b969db65a24d312dde7c6513a07ec46 (diff) | |
misc: Reformat Ryujinx.Audio with dotnet-format (#3485)
This is the first commit of a series of reformat around the codebase as
discussed internally some weeks ago.
This project being one that isn't touched that much, it shouldn't cause
conflict with any opened PRs.
Diffstat (limited to 'Ryujinx.Audio/Renderer/Server')
56 files changed, 116 insertions, 118 deletions
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<MemoryPoolState> _memoryPools; - - private uint _sampleRate; - private uint _sampleCount; - private uint _mixBufferCount; - private uint _voiceChannelCountMax; - private uint _upsamplerCount; - private uint _memoryPoolCount; - private uint _processHandle; + 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<MemoryPoolState> _memoryPools; + + 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<float> _mixBuffer; private Memory<float> _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; } /// <summary> @@ -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 /// </summary> /// <param name="parameter">The user parameter.</param> /// <returns>Returns true if the <see cref="EffectType"/> sent by the user matches the internal <see cref="EffectType"/>.</returns> - public bool IsTypeValid<T>(ref T parameter) where T: unmanaged, IEffectInParameter + public bool IsTypeValid<T>(ref T parameter) where T : unmanaged, IEffectInParameter { return parameter.Type == TargetEffectType; } @@ -140,14 +140,14 @@ namespace Ryujinx.Audio.Renderer.Server.Effect /// Initialize the given <paramref name="state"/> result state. /// </summary> /// <param name="state">The state to initalize</param> - public virtual void InitializeResultState(ref EffectResultState state) {} + public virtual void InitializeResultState(ref EffectResultState state) { } /// <summary> /// Update the <paramref name="destState"/> result state with <paramref name="srcState"/>. /// </summary> /// <param name="destState">The destination result state</param> /// <param name="srcState">The source result state</param> - public virtual void UpdateResultState(ref EffectResultState destState, ref EffectResultState srcState) {} + public virtual void UpdateResultState(ref EffectResultState destState, ref EffectResultState srcState) { } /// <summary> /// Update the internal state from a user version 1 parameter. @@ -215,7 +215,7 @@ namespace Ryujinx.Audio.Renderer.Server.Effect /// </summary> /// <param name="outStatus">The given user output.</param> /// <param name="isAudioRendererActive">If set to true, the <see cref="AudioRenderSystem"/> is active.</param> - public void StoreStatus<T>(ref T outStatus, bool isAudioRendererActive) where T: unmanaged, IEffectOutStatus + public void StoreStatus<T>(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<T>(out BehaviourParameter.ErrorInfo updateErrorInfo, ref T parameter, PoolMapper mapper) where T: unmanaged, IEffectInParameter + public void Update<T>(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 /// </summary> 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 /// <param name="size">The size of the region.</param> 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; } /// <summary> @@ -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 /// <param name="detailType">The type to use.</param> 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 /// <param name="type">The type to use.</param> 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 /// <param name="entryDetailCount">The total count of detailed entries in this frame.</param> 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 /// <typeparam name="THeader">The header implementation of the performance frame.</typeparam> /// <typeparam name="TEntry">The entry implementation of the performance frame.</typeparam> /// <typeparam name="TEntryDetail">A detailed implementation of the performance frame.</typeparam> - public class PerformanceManagerGeneric<THeader, TEntry, TEntryDetail> : PerformanceManager where THeader: unmanaged, IPerformanceHeader where TEntry : unmanaged, IPerformanceEntry where TEntryDetail: unmanaged, IPerformanceDetailEntry + public class PerformanceManagerGeneric<THeader, TEntry, TEntryDetail> : PerformanceManager where THeader : unmanaged, IPerformanceHeader where TEntry : unmanaged, IPerformanceEntry where TEntryDetail : unmanaged, IPerformanceDetailEntry { /// <summary> /// The magic used for the <see cref="THeader"/>. @@ -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 /// </remarks> public Memory<float> 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<byte> _inputOrigin; - private ReadOnlyMemory <byte> _outputOrigin; + private ReadOnlyMemory<byte> _outputOrigin; private ReadOnlyMemory<byte> _input; private Memory<byte> _output; @@ -207,7 +207,7 @@ namespace Ryujinx.Audio.Renderer.Server return ResultCode.Success; } - private static void ResetEffect<T>(ref BaseEffect effect, ref T parameter, PoolMapper mapper) where T: unmanaged, IEffectInParameter + private static void ResetEffect<T>(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 /// </remarks> 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 /// </remarks> 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 |
