BASS.NET API for the Un4seen BASS Audio LibraryMidiMIDI_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.13.0
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:
VB
Dim count As Integer = Midi.MIDI_OutGetNumDevs()
Dim outCaps As New MIDI_OUTCAPS()
Dim i As Integer
For i = 0 To count-1
  Midi.MIDI_OutGetDevCaps(i, outCaps)
  Console.WriteLine(outCaps.name)
Next i
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