Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Created April 4, 2016 12:21
Show Gist options
  • Save rolfbjarne/2290a7fcb446e2cd2c8a407eb9453498 to your computer and use it in GitHub Desktop.
Save rolfbjarne/2290a7fcb446e2cd2c8a407eb9453498 to your computer and use it in GitHub Desktop.
diff --git a/src/AudioUnit/AudioUnit.cs b/src/AudioUnit/AudioUnit.cs
index 96f9f13..7a895fd 100644
--- a/src/AudioUnit/AudioUnit.cs
+++ b/src/AudioUnit/AudioUnit.cs
@@ -226,7 +226,13 @@ namespace XamCore.AudioUnit
[StructLayout(LayoutKind.Sequential)]
unsafe struct AudioUnitParameterInfoNative // AudioUnitParameterInfo in Obj-C
{
- fixed byte /* char[52] */ name[52]; // unused
+ long name1; // 8 unused bytes
+ long name2; // 16 unused bytes
+ long name3; // 24 unused bytes
+ long name4; // 32 unused bytes
+ long name5; // 40 unused bytes
+ long name6; // 48 unused bytes
+ int name7; // 52 unused bytes
public IntPtr /* CFStringRef */ UnitName;
public AudioUnitClumpID /* UInt32 */ ClumpID;
public IntPtr /* CFStringRef */ NameString;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment