示例#1
0
        public static SoundIOChannelLayout BestMatchingChannelLayout(SoundIODevice device1, SoundIODevice device2)
        {
            var ptr1 = Marshal.ReadIntPtr(device1.handle, layouts_offset);
            var ptr2 = Marshal.ReadIntPtr(device2.handle, layouts_offset);

            return(new SoundIOChannelLayout(Natives.soundio_best_matching_channel_layout(ptr1, device1.LayoutCount, ptr2, device2.LayoutCount)));
        }