diff options
author | Vitaly Novichkov <Wohlstand@users.noreply.github.com> | 2018-07-07 19:41:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 19:41:27 +0300 |
commit | c8dc7434d1d07ffb441e2d4621eea6aa71dc6b63 (patch) | |
tree | 0487adc817c4f2f4289d663e73a33f985c1fbf88 /include | |
parent | 63f0c95a978902e0896513ca4c7e7e3907da7b9d (diff) | |
parent | ba37698fd82cab2513cd9f316189d433af4519df (diff) | |
download | libADLMIDI-c8dc7434d1d07ffb441e2d4621eea6aa71dc6b63.tar.gz libADLMIDI-c8dc7434d1d07ffb441e2d4621eea6aa71dc6b63.tar.bz2 libADLMIDI-c8dc7434d1d07ffb441e2d4621eea6aa71dc6b63.zip |
Merge pull request #128 from jpcima/track-options
Track options
Diffstat (limited to 'include')
-rw-r--r-- | include/adlmidi.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h index 387a30a..dc6fd8c 100644 --- a/include/adlmidi.h +++ b/include/adlmidi.h @@ -636,6 +636,33 @@ extern void adl_setTempo(struct ADL_MIDIPlayer *device, double tempo); */ extern int adl_atEnd(struct ADL_MIDIPlayer *device); +/** + * @brief Returns the number of tracks of the current sequence + * @param device Instance of the library + * @return Count of tracks in the current sequence + */ +extern size_t adl_trackCount(struct ADL_MIDIPlayer *device); + +/** + * @brief Track options + */ +enum ADLMIDI_TrackOptions +{ + /*! Enabled track */ + ADL_TrackOption_On = 1, + /*! Disabled track */ + ADL_TrackOption_Off = 2, + /*! Solo track */ + ADL_TrackOption_Solo = 3, +}; + +/** + * @brief Sets options on a track of the current sequence + * @param device Instance of the library + * @param trackNumber Identifier of the designated track. + * @return 0 on success, <0 when any error has occurred + */ +extern int adl_setTrackOptions(struct ADL_MIDIPlayer *device, size_t trackNumber, unsigned trackOptions); |