BASS.NET API for the Un4seen BASS Audio Library

MidiMIDI_InGetDevCaps Method

BASS.NET API for the Un4seen BASS Audio Library
Determines the capabilities of a specified MIDI input device.

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

public static MIDIError MIDI_InGetDevCaps(
	int deviceID,
	MIDI_INCAPS caps
)

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: MIDIError
Returns 0 if successful or an error otherwise. For possible error values see MIDIError.
Remarks

To determine the number of MIDI input devices present on the system, use the MIDI_InGetNumDevs function.
Examples

List all Midi input devices:
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

Reference