BASS_MIDI_InInit

Initializes a MIDI input device.

BOOL BASS_MIDI_InInit(
    DWORD device,
    MIDIINPROC *proc,
    void *user
);

Parameters

deviceThe device to use... 0 = first. BASS_MIDI_InGetDeviceInfo can be used to enumerate the available devices.
procCallback function to receive MIDI data from the device.
userUser 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_DEVICEdevice is invalid.
BASS_ERROR_ALREADYThe device has already been initialized. BASS_MIDI_InFree must be called before it can be initialized again.
BASS_ERROR_NOTAVAILThe device not available.
BASS_ERROR_UNKNOWNSome 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