Exemple #1
0
        public static BASS_MIDI_FONTINFO BASS_MIDI_FontGetInfo(int handle)
        {
            BASS_MIDI_FONTINFO bass_MIDI_FONTINFO = new BASS_MIDI_FONTINFO();

            if (BassMidi.BASS_MIDI_FontGetInfo(handle, bass_MIDI_FONTINFO))
            {
                return(bass_MIDI_FONTINFO);
            }
            return(null);
        }
Exemple #2
0
        public static int[] BASS_MIDI_FontGetPresets(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))
            {
                return(array);
            }
            return(null);
        }
Exemple #3
0
        public static bool BASS_MIDI_FontGetInfo(int handle, BASS_MIDI_FONTINFO info)
        {
            bool flag = BassMidi.BASS_MIDI_FontGetInfoInternal(handle, ref info._internal);

            if (flag)
            {
                info.comment   = Utils.IntPtrAsStringAnsi(info._internal.comment);
                info.copyright = Utils.IntPtrAsStringAnsi(info._internal.copyright);
                info.name      = Utils.IntPtrAsStringAnsi(info._internal.name);
                info.presets   = info._internal.presets;
                info.samload   = info._internal.samload;
                info.samsize   = info._internal.samsize;
                info.samtype   = info._internal.samtype;
            }
            return(flag);
        }
Exemple #4
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);
        }