Queries a specified MIDI output device to determine its capabilities.
Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.2
Syntax
Parameters
- deviceID
- Type: SystemInt32
Identifier of the MIDI output device. The device identifier varies from zero to one less than the number of devices present. - caps
- Type: radio42.Multimedia.MidiMIDI_OUTCAPS
An instance of the MIDI_OUTCAPS class that is filled with information about the capabilities of the device.
Return Value
Type: MIDIErrorReturns 0 if successful or an error code otherwise. For possible error values see MIDIError.
Remarks
Examples
int count = Midi.MIDI_OutGetNumDevs(); MIDI_OUTCAPS outCaps = new MIDI_OUTCAPS(); for (int i=0; i<count; i++) { Midi.MIDI_OutGetDevCaps(i, outCaps); if (outCaps.IsMidiPort) Console.WriteLine( outCaps.name ); }
See Also