public static MidiFontEx[] StreamGetFontsEx(int handle, int count) { var arr = new MidiFontEx[count]; var gch = GCHandle.Alloc(arr, GCHandleType.Pinned); StreamGetFonts(handle, gch.AddrOfPinnedObject(), count | BASS_MIDI_FONT_EX); gch.Free(); return(arr); }
public static int StreamSetFontsEx(int handle, MidiFontEx fonts, int count) { return(BASS_MIDI_StreamSetFonts(handle, fonts, count | BASS_MIDI_FONT_EX)); }
static extern int BASS_MIDI_StreamSetFonts(int handle, MidiFontEx fonts, int count);