SoundIOChannelArea.cs 671 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace SoundIOSharp
  4. {
  5. public struct SoundIOChannelArea
  6. {
  7. internal SoundIOChannelArea (Pointer<SoundIoChannelArea> handle)
  8. {
  9. this.handle = handle;
  10. }
  11. Pointer<SoundIoChannelArea> handle;
  12. public IntPtr Pointer {
  13. get { return Marshal.ReadIntPtr (handle, ptr_offset); }
  14. set { Marshal.WriteIntPtr (handle, ptr_offset, value); }
  15. }
  16. static readonly int ptr_offset = (int) Marshal.OffsetOf<SoundIoChannelArea> ("ptr");
  17. public int Step {
  18. get { return Marshal.ReadInt32 (handle, step_offset); }
  19. }
  20. static readonly int step_offset = (int)Marshal.OffsetOf<SoundIoChannelArea> ("step");
  21. }
  22. }