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/MemoryPool | |
| 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/MemoryPool')
3 files changed, 15 insertions, 17 deletions
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 |
