aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2021-10-25 05:39:00 +0300
committerWohlstand <admin@wohlnet.ru>2021-10-25 05:39:00 +0300
commit72321e12764a57364a12199938eb757af4d4f4ff (patch)
tree6c506796c273d376d55e5a03aef0d8265d867254 /include
parent50a8396eb61c665b07426c70a11c0b73ed950434 (diff)
downloadlibADLMIDI-72321e12764a57364a12199938eb757af4d4f4ff.tar.gz
libADLMIDI-72321e12764a57364a12199938eb757af4d4f4ff.tar.bz2
libADLMIDI-72321e12764a57364a12199938eb757af4d4f4ff.zip
Added an ability to disable/enable the MIDI channel
Diffstat (limited to 'include')
-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.