BASS.NET API for the Un4seen BASS Audio Library

MidiMIDI_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.17.2
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:
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