From 403e67d9835b7412022ff4d98685f83590641c88 Mon Sep 17 00:00:00 2001 From: Mary-nyan Date: Sun, 11 Dec 2022 00:57:01 +0100 Subject: audio: Rewrite SoundIo bindings (#4088) * audio: Rewrite SoundIo bindings This rewrite SoundIo bindings to be safer and not a pedantic autogenerated mess. * Address comments * Switch DllImport to LibraryImport * Address gdkchan's comment --- .../Native/libsoundio/SoundIOChannelArea.cs | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs (limited to 'Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs') diff --git a/Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs b/Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs deleted file mode 100644 index c15fb744..00000000 --- a/Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Runtime.InteropServices; - -namespace SoundIOSharp -{ - public struct SoundIOChannelArea - { - internal SoundIOChannelArea(Pointer handle) - { - this.handle = handle; - } - - Pointer handle; - - public IntPtr Pointer - { - get { return Marshal.ReadIntPtr(handle, ptr_offset); } - set { Marshal.WriteIntPtr(handle, ptr_offset, value); } - } - - static readonly int ptr_offset = (int)Marshal.OffsetOf("ptr"); - - public int Step - { - get { return Marshal.ReadInt32(handle, step_offset); } - } - - static readonly int step_offset = (int)Marshal.OffsetOf("step"); - } -} \ No newline at end of file -- cgit v1.2.3