aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/Renderer/Server/MemoryPool
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Audio/Renderer/Server/MemoryPool')
-rw-r--r--Ryujinx.Audio/Renderer/Server/MemoryPool/AddressInfo.cs15
-rw-r--r--Ryujinx.Audio/Renderer/Server/MemoryPool/MemoryPoolState.cs11
-rw-r--r--Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs6
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