From 72321e12764a57364a12199938eb757af4d4f4ff Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Mon, 25 Oct 2021 05:39:00 +0300 Subject: Added an ability to disable/enable the MIDI channel --- include/adlmidi.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/adlmidi.h') diff --git a/include/adlmidi.h b/include/adlmidi.h index 53f57f8..11567f0 100644 --- a/include/adlmidi.h +++ b/include/adlmidi.h @@ -894,6 +894,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) -- cgit v1.2.3