diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-04-20 00:28:09 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-04-20 00:28:09 +0300 |
commit | cfacf50fc1422d88b169d02cfaf48dd8529e5a76 (patch) | |
tree | c203374b80142888f5e96a5be70505f0313e17ad /src/adlmidi_private.hpp | |
parent | 558cd429dbef266d94ef789efa6514fc9d531b95 (diff) | |
download | libADLMIDI-cfacf50fc1422d88b169d02cfaf48dd8529e5a76.tar.gz libADLMIDI-cfacf50fc1422d88b169d02cfaf48dd8529e5a76.tar.bz2 libADLMIDI-cfacf50fc1422d88b169d02cfaf48dd8529e5a76.zip |
Put some another functions into "ADLMIDI_DISABLE_MIDI_SEQUENCER" zone
Those functions are dead out of disabled MIDI Sequencer code, so, there are must NOT appear in the library when MIDI Sequencer is disabled.
Diffstat (limited to 'src/adlmidi_private.hpp')
-rw-r--r-- | src/adlmidi_private.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp index f6eea5a..3532126 100644 --- a/src/adlmidi_private.hpp +++ b/src/adlmidi_private.hpp @@ -1167,7 +1167,21 @@ public: Setup m_setup; +#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER + /** + * @brief Utility function to read Big-Endian integer from raw binary data + * @param buffer Pointer to raw binary buffer + * @param nbytes Count of bytes to parse integer + * @return Extracted unsigned integer + */ static uint64_t ReadBEint(const void *buffer, size_t nbytes); + + /** + * @brief Utility function to read Little-Endian integer from raw binary data + * @param buffer Pointer to raw binary buffer + * @param nbytes Count of bytes to parse integer + * @return Extracted unsigned integer + */ static uint64_t ReadLEint(const void *buffer, size_t nbytes); /** @@ -1184,6 +1198,7 @@ public: * @return Unsigned integer that conains parsed variable-length value */ uint64_t ReadVarLenEx(uint8_t **ptr, uint8_t *end, bool &ok); +#endif bool LoadBank(const std::string &filename); bool LoadBank(const void *data, size_t size); |