mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-30 08:36:25 +02:00
misc: Replace references to IntPtr/UIntPtr with nint/nuint + code cleanups.
This commit is contained in:
parent
a09d314817
commit
dfb4854d19
172 changed files with 902 additions and 914 deletions
|
@ -72,7 +72,7 @@ namespace Ryujinx.Audio.Backends.SDL2
|
|||
}
|
||||
}
|
||||
|
||||
private unsafe void Update(IntPtr userdata, IntPtr stream, int streamLength)
|
||||
private unsafe void Update(nint userdata, nint stream, int streamLength)
|
||||
{
|
||||
Span<byte> streamSpan = new((void*)stream, streamLength);
|
||||
|
||||
|
@ -97,7 +97,7 @@ namespace Ryujinx.Audio.Backends.SDL2
|
|||
|
||||
fixed (byte* p = samples)
|
||||
{
|
||||
IntPtr pStreamSrc = (IntPtr)p;
|
||||
nint pStreamSrc = (nint)p;
|
||||
|
||||
// Zero the dest buffer
|
||||
streamSpan.Clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue