aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_private.hpp
diff options
context:
space:
mode:
authorJP Cimalando <jpcima@users.noreply.github.com>2018-06-19 21:15:45 +0200
committerJP Cimalando <jpcima@users.noreply.github.com>2018-06-19 22:20:49 +0200
commit2f26855c27aaffee0472edf43dbc5ac5ca1a5162 (patch)
tree1b5be6a77997a9165c55e149dc793a2a0cd2a631 /src/adlmidi_private.hpp
parentdff692fff4a9908094312cda6e4c16d98431babf (diff)
downloadlibADLMIDI-2f26855c27aaffee0472edf43dbc5ac5ca1a5162.tar.gz
libADLMIDI-2f26855c27aaffee0472edf43dbc5ac5ca1a5162.tar.bz2
libADLMIDI-2f26855c27aaffee0472edf43dbc5ac5ca1a5162.zip
allow portamento to be updated by MIDI::Tick
Diffstat (limited to 'src/adlmidi_private.hpp')
-rw-r--r--src/adlmidi_private.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp
index 93817cd..7aad63b 100644
--- a/src/adlmidi_private.hpp
+++ b/src/adlmidi_private.hpp
@@ -996,8 +996,10 @@ private:
//! Counter of arpeggio processing
size_t m_arpeggioCounter;
+#if defined(ADLMIDI_AUDIO_TICK_HANDLER)
//! Audio tick counter
uint32_t m_audioTickCounter;
+#endif
#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER
std::vector<std::vector<uint8_t> > TrackData;
@@ -1196,8 +1198,10 @@ public:
void realTime_panic();
+#if defined(ADLMIDI_AUDIO_TICK_HANDLER)
// Audio rate tick handler
void AudioTick(uint32_t chipId, uint32_t rate);
+#endif
private:
enum
@@ -1243,6 +1247,7 @@ private:
void UpdateVibrato(double amount);
void UpdateArpeggio(double /*amount*/);
+ void UpdateGlide(double amount);
public:
uint64_t ChooseDevice(const std::string &name);
@@ -1267,7 +1272,9 @@ struct FourChars
};
*/
+#if defined(ADLMIDI_AUDIO_TICK_HANDLER)
extern void adl_audioTickHandler(void *instance, uint32_t chipId, uint32_t rate);
+#endif
extern int adlRefreshNumCards(ADL_MIDIPlayer *device);