summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/lv2_plugin.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-09-10 00:55:28 +0200
committerRobin Gareus <robin@gareus.org>2015-09-10 00:55:59 +0200
commit09caf8336f4ec681668a940e7df00ec18b3fd836 (patch)
tree7c85c28ec582c8a559efcb85b3b39cf50f1c7612 /libs/ardour/ardour/lv2_plugin.h
parent390ea007c5b6b647e33c924b3429bf49ae83b1ca (diff)
allow LV2 plugins to query current block-size.
This is akin to VST2's audioMasterGetBlockSize. It returns the current nominal block size (think jack-buffersize). It's not the only block size that may be used when calling run(), it's just the normal one. The actual block sizes used may be larger or smaller and may vary between successive calls of run(). This change became neccesary after 53e969e9. Some plugins expected maxBlockLength to be the /current/ buffer-size and not all-time maxiumum. Those plugins can now use nominalBlockLength.
Diffstat (limited to 'libs/ardour/ardour/lv2_plugin.h')
-rw-r--r--libs/ardour/ardour/lv2_plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h
index 0a83ffe63a..12e079f29c 100644
--- a/libs/ardour/ardour/lv2_plugin.h
+++ b/libs/ardour/ardour/lv2_plugin.h
@@ -96,7 +96,7 @@ class LIBARDOUR_API LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee
void deactivate ();
void cleanup ();
- int set_block_size (pframes_t /*nframes*/) { return 0; }
+ int set_block_size (pframes_t);
int connect_and_run (BufferSet& bufs,
ChanMapping in, ChanMapping out,