private static void *__CopyValue(AudioOutputDevice.Internal native) { var ret = Marshal.AllocHGlobal(sizeof(AudioOutputDevice.Internal)); *(AudioOutputDevice.Internal *)ret = native; return(ret.ToPointer()); }
private AudioOutputDevice(AudioOutputDevice.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[NativeReference] = this; }
internal static AudioOutputDevice __CreateInstance(AudioOutputDevice.Internal native, bool skipVTables = false) { return(new AudioOutputDevice(native, skipVTables)); }