diff --git a/Ryujinx.Audio/Native/libsoundio/SoundIOOutStream.cs b/Ryujinx.Audio/Native/libsoundio/SoundIOOutStream.cs index a9101425..346e6afb 100644 --- a/Ryujinx.Audio/Native/libsoundio/SoundIOOutStream.cs +++ b/Ryujinx.Audio/Native/libsoundio/SoundIOOutStream.cs @@ -64,7 +64,7 @@ namespace SoundIOSharp get { unsafe { return new SoundIOChannelLayout ((IntPtr) ((void*) ((IntPtr) handle + layout_offset))); } } set { unsafe { - Buffer.MemoryCopy ((void*)((IntPtr)handle + layout_offset), (void*)value.Handle, + Buffer.MemoryCopy ((void*)value.Handle, (void*)((IntPtr)handle + layout_offset), Marshal.SizeOf (), Marshal.SizeOf ()); } }