示例#1
0
        public static MidiFont[] StreamGetFonts(int handle, int count)
        {
            var arr = new MidiFont[count];

            var gch = GCHandle.Alloc(arr, GCHandleType.Pinned);

            StreamGetFonts(handle, gch.AddrOfPinnedObject(), count);

            gch.Free();

            return(arr);
        }
示例#2
0
 public static extern int StreamSetFonts(int handle, MidiFont fonts, int count);