diff options
| author | Mary-nyan <mary@mary.zone> | 2022-12-11 00:57:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-11 00:57:01 +0100 |
| commit | 403e67d9835b7412022ff4d98685f83590641c88 (patch) | |
| tree | 5d86f83be23c065edfa92329570cf37d64c1f4d6 /Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs | |
| parent | c6f1908e0f07b6dd4b60cbe333a9b5f1adec276b (diff) | |
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
Diffstat (limited to 'Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs')
| -rw-r--r-- | Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs | 30 |
1 files changed, 0 insertions, 30 deletions
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<SoundIoChannelArea> handle) - { - this.handle = handle; - } - - Pointer<SoundIoChannelArea> 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<SoundIoChannelArea>("ptr"); - - public int Step - { - get { return Marshal.ReadInt32(handle, step_offset); } - } - - static readonly int step_offset = (int)Marshal.OffsetOf<SoundIoChannelArea>("step"); - } -}
\ No newline at end of file |
