SoundIOChannelArea.cs 786 B

123456789101112131415161718192021222324252627282930
  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. {
  14. get { return Marshal.ReadIntPtr(handle, ptr_offset); }
  15. set { Marshal.WriteIntPtr(handle, ptr_offset, value); }
  16. }
  17. static readonly int ptr_offset = (int)Marshal.OffsetOf<SoundIoChannelArea>("ptr");
  18. public int Step
  19. {
  20. get { return Marshal.ReadInt32(handle, step_offset); }
  21. }
  22. static readonly int step_offset = (int)Marshal.OffsetOf<SoundIoChannelArea>("step");
  23. }
  24. }