Esempio n. 1
0
        private static void *__CopyValue(AudioOutputDevice.Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(AudioOutputDevice.Internal));

            *(AudioOutputDevice.Internal *)ret = native;
            return(ret.ToPointer());
        }
Esempio n. 2
0
 private AudioOutputDevice(AudioOutputDevice.Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[NativeReference] = this;
 }
Esempio n. 3
0
 internal static AudioOutputDevice __CreateInstance(AudioOutputDevice.Internal native, bool skipVTables = false)
 {
     return(new AudioOutputDevice(native, skipVTables));
 }