BASS.NET API for the Un4seen BASS Audio Library

MidiMIDI_OutGetNumDevs Method

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the number of MIDI output devices present in the system.

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

public static int MIDI_OutGetNumDevs()

Return Value

Type: Int32
Returns the number of MIDI output devices. A return value of zero means that there are no devices (not that there is no error).
Examples

List all Midi output devices:
int count = Midi.MIDI_OutGetNumDevs();
MIDI_OUTCAPS outCaps = new MIDI_OUTCAPS();
for (int i=0; i<count; i++)
{
  Midi.MIDI_OutGetDevCaps(i, outCaps);
  Console.WriteLine( outCaps.name );
}
See Also

Reference