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.5
Syntax
Return Value
Type: Int32Returns the number of MIDI output devices. A return value of zero means that there are no devices (not that there is no error).
Examples
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