aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs')
-rw-r--r--Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs b/Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs
new file mode 100644
index 00000000..c15fb744
--- /dev/null
+++ b/Ryujinx.Audio.Backends.SoundIo/Native/libsoundio/SoundIOChannelArea.cs
@@ -0,0 +1,30 @@
+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