From 1825bd87b4f0709ab79ed407f6c267ba3545456e Mon Sep 17 00:00:00 2001 From: Mary-nyan Date: Mon, 25 Jul 2022 20:46:33 +0200 Subject: 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/Renderer/Server/MemoryPool/AddressInfo.cs | 15 +++++++-------- .../Renderer/Server/MemoryPool/MemoryPoolState.cs | 11 +++++------ Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs | 6 +++--- 3 files changed, 15 insertions(+), 17 deletions(-) (limited to 'Ryujinx.Audio/Renderer/Server/MemoryPool') 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 -- cgit v1.2.3