aboutsummaryrefslogtreecommitdiff
path: root/include/adlmidi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/adlmidi.h')
-rw-r--r--include/adlmidi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h
index 53f57f8..11567f0 100644
--- a/include/adlmidi.h
+++ b/include/adlmidi.h
@@ -895,6 +895,15 @@ enum ADLMIDI_TrackOptions
extern ADLMIDI_DECLSPEC int adl_setTrackOptions(struct ADL_MIDIPlayer *device, size_t trackNumber, unsigned trackOptions);
/**
+ * @brief Sets the channel of the current sequence enable state
+ * @param device Instance of the library
+ * @param channelNumber Number of the channel (from 0 to 15)
+ * @param enabled 1 to enable and 0 to disable
+ * @return 0 on success, <0 when any error has occurred
+ */
+extern ADLMIDI_DECLSPEC int adl_setChannelEnabled(struct ADL_MIDIPlayer *device, size_t channelNumber, int enabled);
+
+/**
* @brief Handler of callback trigger events
* @param userData Pointer to user data (usually, context of something)
* @param trigger Value of the event which triggered this callback.