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

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