diff options
author | Wohlstand <admin@wohlnet.ru> | 2018-10-01 12:38:32 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2018-10-01 12:38:32 +0300 |
commit | 75daca694c01156dc447993060b1b285f3db3056 (patch) | |
tree | 0e70115d0e506d64b1e5d6abab054019c7e78bbb /include/adlmidi.h | |
parent | d9e1a993d5b8cbeae4f2db5bce81147c3dc42fa7 (diff) | |
parent | 314cde9fccb603bbd2b36b58dc9b3020c160ac4b (diff) | |
download | libADLMIDI-75daca694c01156dc447993060b1b285f3db3056.tar.gz libADLMIDI-75daca694c01156dc447993060b1b285f3db3056.tar.bz2 libADLMIDI-75daca694c01156dc447993060b1b285f3db3056.zip |
Merge branch 'master' of github.com:Wohlstand/libADLMIDI into stable
Diffstat (limited to 'include/adlmidi.h')
-rw-r--r-- | include/adlmidi.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h index eb3edf4..3524587 100644 --- a/include/adlmidi.h +++ b/include/adlmidi.h @@ -66,7 +66,7 @@ typedef short ADL_SInt16; #ifdef __clang__ # if __has_extension(attribute_deprecated_with_message) -# define JSONCPP_DEPRECATED(message) __attribute__((deprecated(message))) +# define ADLMIDI_DEPRECATED(message) __attribute__((deprecated(message))) # endif #elif defined __GNUC__ /* not clang (gcc comes later since clang emulates gcc) */ # if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)) @@ -185,6 +185,13 @@ extern ADLMIDI_DECLSPEC int adl_setNumChips(struct ADL_MIDIPlayer *device, int n extern ADLMIDI_DECLSPEC int adl_getNumChips(struct ADL_MIDIPlayer *device); /** + * @brief Get obtained number of emulated chips + * @param device Instance of the library + * @return Count of working chip emulators + */ +extern ADLMIDI_DECLSPEC int adl_getNumChipsObtained(struct ADL_MIDIPlayer *device); + +/** * @brief Sets a number of the patches bank from 0 to N banks. * * Is recommended to call adl_reset() to apply changes to already-loaded file player or real-time. @@ -340,11 +347,18 @@ extern ADLMIDI_DECLSPEC int adl_setNumFourOpsChn(struct ADL_MIDIPlayer *device, /** * @brief Get current total count of 4-operator channels between all chips * @param device Instance of the library - * @return 0 on success, <0 when any error has occurred + * @return 0 on success, <-1 when any error has occurred, but, -1 - "auto" */ extern ADLMIDI_DECLSPEC int adl_getNumFourOpsChn(struct ADL_MIDIPlayer *device); /** + * @brief Get obtained total count of 4-operator channels between all chips + * @param device Instance of the library + * @return 0 on success, <0 when any error has occurred + */ +extern ADLMIDI_DECLSPEC int adl_getNumFourOpsChnObtained(struct ADL_MIDIPlayer *device); + +/** * @brief Override Enable(1) or Disable(0) AdLib percussion mode. -1 - use bank default AdLib percussion mode * * This function forces rhythm-mode on any bank. The result will work glitchy. @@ -729,7 +743,7 @@ extern ADLMIDI_DECLSPEC int adl_setTrackOptions(struct ADL_MIDIPlayer *device, s * @param trigger Value of the event which triggered this callback. * @param track Identifier of the track which triggered this callback. */ -typedef ADLMIDI_DECLSPEC void (*ADL_TriggerHandler)(void *userData, unsigned trigger, size_t track); +typedef void (*ADL_TriggerHandler)(void *userData, unsigned trigger, size_t track); /** * @brief Defines a handler for callback trigger events |