aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-28 04:15:57 +0000
committerDavid Robillard <d@drobilla.net>2012-04-28 04:15:57 +0000
commit84a86ae683ce632acb906da2cd7d7a99626db38c (patch)
tree16e7ec97c48e9f642edb440a147ea26fcc8a0104 /src/jalv_internal.h
parent367adb875b1947cd5f2a259a8075af27ddcf389a (diff)
downloadjalv-84a86ae683ce632acb906da2cd7d7a99626db38c.tar.gz
jalv-84a86ae683ce632acb906da2cd7d7a99626db38c.tar.bz2
jalv-84a86ae683ce632acb906da2cd7d7a99626db38c.zip
Tune UI update rate and ring size based on JACK rate and MIDI buffer size to handle the handle the maximum message rate the plugin can send.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4298 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/jalv_internal.h')
-rw-r--r--src/jalv_internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jalv_internal.h b/src/jalv_internal.h
index bca3c92..b76af60 100644
--- a/src/jalv_internal.h
+++ b/src/jalv_internal.h
@@ -47,8 +47,6 @@
extern "C" {
#endif
-#define JALV_UI_UPDATE_HZ 15
-
enum PortFlow {
FLOW_UNKNOWN,
FLOW_INPUT,
@@ -168,6 +166,7 @@ typedef struct {
size_t midi_buf_size; ///< Size of MIDI port buffers
uint32_t num_ports; ///< Size of the two following arrays:
uint32_t longest_sym; ///< Longest port symbol
+ uint32_t ui_update_hz; ///< Frequency of UI updates
jack_nframes_t sample_rate; ///< Sample rate
jack_nframes_t event_delta_t; ///< Frames since last update sent to UI
uint32_t midi_event_id; ///< MIDI event class ID in event context