mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 02:53:04 +00:00
27 lines
671 B
C#
27 lines
671 B
C#
|
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");
|
|||
|
}
|
|||
|
}
|