Exemple #1
0
        public static BASS_MIDI_DEVICEINFO BASS_MIDI_InGetDeviceInfo(int device)
        {
            BASS_MIDI_DEVICEINFO bass_MIDI_DEVICEINFO = new BASS_MIDI_DEVICEINFO();

            if (BassMidi.BASS_MIDI_InGetDeviceInfo(device, bass_MIDI_DEVICEINFO))
            {
                return(bass_MIDI_DEVICEINFO);
            }
            return(null);
        }
Exemple #2
0
        public static int BASS_MIDI_InGetDeviceInfos()
        {
            BASS_MIDI_DEVICEINFO info = new BASS_MIDI_DEVICEINFO();
            int num = 0;

            while (BassMidi.BASS_MIDI_InGetDeviceInfo(num, info))
            {
                num++;
            }
            Bass.BASS_GetCPU();
            return(num);
        }
Exemple #3
0
        public static bool BASS_MIDI_InGetDeviceInfo(int device, BASS_MIDI_DEVICEINFO info)
        {
            bool flag = BassMidi.BASS_MIDI_InGetDeviceInfoInternal(device, ref info._internal);

            if (flag)
            {
                if (Bass._configUTF8)
                {
                    info.name = Utils.IntPtrAsStringUtf8(info._internal.name);
                }
                else
                {
                    info.name = Utils.IntPtrAsStringAnsi(info._internal.name);
                }
                info.id    = info._internal.id;
                info.flags = info._internal.flags;
            }
            return(flag);
        }