Support latest options extension.

git-svn-id: svn://localhost/ardour2/branches/3.0@13191 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2012-09-16 17:01:23 +00:00
parent d80482dddf
commit 87017d581a
2 changed files with 5 additions and 5 deletions

View file

@ -298,13 +298,13 @@ LV2Plugin::init(const void* c_plugin, framecnt_t rate)
#ifdef HAVE_NEW_LV2
LV2_URID atom_Int = _uri_map.uri_to_id(LV2_ATOM__Int);
LV2_Options_Option options[] = {
{ _uri_map.uri_to_id(LV2_BUF_SIZE__minBlockLength),
{ LV2_OPTIONS_INSTANCE, 0, _uri_map.uri_to_id(LV2_BUF_SIZE__minBlockLength),
sizeof(int32_t), atom_Int, &_block_length },
{ _uri_map.uri_to_id(LV2_BUF_SIZE__maxBlockLength),
{ LV2_OPTIONS_INSTANCE, 0, _uri_map.uri_to_id(LV2_BUF_SIZE__maxBlockLength),
sizeof(int32_t), atom_Int, &_block_length },
{ _uri_map.uri_to_id(LV2_BUF_SIZE__sequenceSize),
{ LV2_OPTIONS_INSTANCE, 0, _uri_map.uri_to_id(LV2_BUF_SIZE__sequenceSize),
sizeof(int32_t), atom_Int, &_seq_size },
{ 0, 0, 0, NULL }
{ LV2_OPTIONS_INSTANCE, 0, 0, 0, 0, NULL }
};
_options_feature.URI = LV2_OPTIONS__options;

View file

@ -259,7 +259,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2',
atleast_version='1.0.0', mandatory=True)
autowaf.check_pkg(conf, 'lv2', uselib_store='NEW_LV2',
atleast_version='1.0.13', mandatory=False)
atleast_version='1.0.15', mandatory=False)
autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD',
atleast_version='0.14.0', mandatory=True)
autowaf.check_pkg(conf, 'sord-0', uselib_store='SORD',