libswami Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
SwamiMidiDevice; gboolean swami_midi_device_open (SwamiMidiDevice *device
,GError **err
); void swami_midi_device_close (SwamiMidiDevice *device
); SwamiControl * swami_midi_device_get_control (SwamiMidiDevice *device
,int index
);
gboolean swami_midi_device_open (SwamiMidiDevice *device
,GError **err
);
Open a MIDI device.
void swami_midi_device_close (SwamiMidiDevice *device
);
Close an active MIDI device.
|
MIDI device object |
SwamiControl * swami_midi_device_get_control (SwamiMidiDevice *device
,int index
);
Get a MIDI control object from a MIDI device. A MIDI device may have multiple MIDI control interface channels (if supporting more than 16 MIDI channels for example), so index can be used to iterate over them. The MIDI device does NOT need to be active when calling this function.
|
MIDI device object |
|
Index of control |
Returns : |
The MIDI control for the given index , or NULL if no control
with that index. The reference count of the returned control has been
incremented and is owned by the caller, remember to unref it when finished.
|