BASS.NET API for the Un4seen BASS Audio LibraryMidiMIDI_InGetNumDevs Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves the number of MIDI input devices in the system.

Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.13.3
Syntax

public static int MIDI_InGetNumDevs()

Return Value

Type: Int32
Returns 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

List all Misi input devices:
VB
Dim count As Integer = Midi.MIDI_InGetNumDevs()
Dim inCaps As New MIDI_INCAPS()
Dim i As Integer
For i = 0 To count-1
Midi.MIDI_InGetDevCaps(i, inCaps)
  Console.WriteLine(inCaps.name)
Next i
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

Reference