Beispiel #1
0
        public static BASS_MIDI_FONT[] BASS_MIDI_StreamGetFonts(int handle)
        {
            int num = BassMidi.BASS_MIDI_StreamGetFontsCount(handle);

            if (num >= 0)
            {
                BASS_MIDI_FONT[] array = new BASS_MIDI_FONT[num];
                BassMidi.BASS_MIDI_StreamGetFonts(handle, array, num);
                return(array);
            }
            return(null);
        }
Beispiel #2
0
        public static BASS_MIDI_FONT[] BASS_MIDI_FontGetPresetFonts(int handle)
        {
            BASS_MIDI_FONTINFO bass_MIDI_FONTINFO = BassMidi.BASS_MIDI_FontGetInfo(handle);

            if (bass_MIDI_FONTINFO == null)
            {
                return(null);
            }
            int[] array = new int[bass_MIDI_FONTINFO.presets];
            if (BassMidi.BASS_MIDI_FontGetPresets(handle, array))
            {
                BASS_MIDI_FONT[] array2 = new BASS_MIDI_FONT[bass_MIDI_FONTINFO.presets];
                for (int i = 0; i < bass_MIDI_FONTINFO.presets; i++)
                {
                    array2[i] = new BASS_MIDI_FONT(handle, Utils.LowWord32(array[i]), Utils.HighWord32(array[i]));
                }
                return(array2);
            }
            return(null);
        }