Determines the capabilities of a specified MIDI input device.
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 input device. The device identifier varies from zero to one less than the number of devices present. - caps
- Type: radio42.Multimedia.MidiMIDI_INCAPS
An instance of the MIDI_INCAPS class that is filled with information about the capabilities of the device.
Return Value
Type: MIDIErrorReturns 0 if successful or an error otherwise. For possible error values see MIDIError.
Remarks
Examples
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