BASS_MIDI_InInit
Initializes a MIDI input device.
BOOL BASS_MIDI_InInit(
DWORD device,
MIDIINPROC *proc,
void *user
);
Parameters
device | The device to use... 0 = first. BASS_MIDI_InGetDeviceInfo can be used to enumerate the available devices.
|
proc | Callback function to receive MIDI data from the device.
|
user | User instance data to pass to the callback function.
|
Return value
If the device was successfully initialized, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_DEVICE | device is invalid.
|
BASS_ERROR_ALREADY | The device has already been initialized. BASS_MIDI_InFree must be called before it can be initialized again.
|
BASS_ERROR_NOTAVAIL | The device not available.
|
BASS_ERROR_UNKNOWN | Some other mystery problem!
|
Platform-specific
MIDI input is not available on Android.
See also
BASS_MIDI_InFree, BASS_MIDI_InGetDeviceInfo, BASS_MIDI_InStart, BASS_CONFIG_MIDI_IN_PORTS