Retrieves the number of MIDI input devices in the system.
Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Return Value
Type: Int32Returns the number of MIDI input devices present in the system. A return value of zero means that there are no devices (not that there is no error).
Examples
int count = Midi.MIDI_InGetNumDevs(); MIDI_INCAPS inCaps = new MIDI_INCAPS(); for (int i=0; i<count; i++) { Midi.MIDI_InGetDevCaps(i, inCaps); Console.WriteLine( inCaps.name ); }
See Also