but still I get
for the case it helps, here is my code were I ask for the bufsize in instantiate ,No maximum buffer size given.
unsupported block-size: 0
No maximum buffer size given.
unsupported block-size: 0
this works in jalv:
Code: Select all
const LV2_Options_Option* options = NULL;
LV2_URID_Map* map = NULL;
uint32_t bufsize = 0;
for (int i = 0; features[i]; ++i) {
if (!strcmp(features[i]->URI, LV2_URID__map)) {
map = (LV2_URID_Map*)features[i]->data;
} else if (!strcmp(features[i]->URI, LV2_OPTIONS__options)) {
options = (const LV2_Options_Option*)features[i]->data;
}
}
if (!map) {
fprintf(stderr, "Missing feature uri:map.\n");
} else if (!options) {
fprintf(stderr, "Missing feature options.\n");
} else {
LV2_URID bufsz_max = map->map(map->handle, LV2_BUF_SIZE__maxBlockLength);
LV2_URID atom_Int = map->map(map->handle, LV2_ATOM__Int);
for (const LV2_Options_Option* o = options; o->key; ++o) {
if (o->context == LV2_OPTIONS_INSTANCE &&
o->key == bufsz_max &&
o->type == atom_Int) {
bufsize = *(const int32_t*)o->value;
}
}
if (bufsize == 0) {
fprintf(stderr, "No maximum buffer size given.\n");
}
if (bufsize < 64 || bufsize > 8192 ) {
fprintf(stderr, "unsupported block-size: %d\n", bufsize);
bufsize = 0;
}
printf("using block size: %d\n", bufsize);
}
So this output means, the bufsize option is supported, but I didn't receive a value.
greets
hermann
here is my ./configure output:
Qtractor 0.5.6.28
Build target . . . . . . . . . . . . . . . . . . .: release
Code: Select all
JACK Audio Connection Kit support . . . . . . . .: yes
ALSA MIDI Sequencer support . . . . . . . . . . .: yes
General audio file support (libsndfile) . . . . .: yes
Ogg Vorbis audio file support (libvorbis) . . . .: yes
MPEG-1 Audio Layer 3 file support (libmad) . . . .: yes
Sample-rate conversion support (libsamplerate) . .: yes
Pitch-shifting support (librubberband) . . . . . .: yes
OSC service support (liblo) . . . . . . . . . . .: yes
Archive/Zip file support (zlib) . . . . . . . . .: yes
IEEE 32bit float optimizations . . . . . . . . . .: yes
SSE optimization support (x86) . . . . . . . . . .: yes
LADSPA plug-in support . . . . . . . . . . . . . .: yes
DSSI plug-in support . . . . . . . . . . . . . . .: yes
VST plug-in support . . . . . . . . . . . . . . .: yes
LV2 plug-in support . . . . . . . . . . . . . . .: yes
LV2 plug-in support (liblilv) . . . . . . . . . .: yes
LV2 plug-in UI instantiation (libsuil) . . . . . .: yes
LV2 plug-in QT4 UI support . . . . . . . . . . . .: yes
LV2 plug-in GTK UI support . . . . . . . . . . . .: yes
LV2 plug-in External UI support . . . . . . . . .: yes
LV2 plug-in MIDI/Event support . . . . . . . . . .: yes
LV2 plug-in MIDI/Atom support . . . . . . . . . .: yes
LV2 plug-in Worker/Schedule support . . . . . . .: yes
LV2 plug-in State support . . . . . . . . . . . .: yes
LV2 plug-in State Files support (EXPERIMENTAL) . .: yes
LV2 plug-in Programs support . . . . . . . . . . .: yes
LV2 plug-in Presets support . . . . . . . . . . .: yes
LV2 plug-in Time support . . . . . . . . . . . . .: yes
LV2 plug-in Options support . . . . . . . . . . .: yes
LV2 plug-in Buf-size support . . . . . . . . . . .: yes
JACK Session support . . . . . . . . . . . . . . .: yes
JACK Latency support . . . . . . . . . . . . . . .: yes
X11 Unique/Single instance . . . . . . . . . . . .: no
VeSTige header support . . . . . . . . . . . . . .: yes
Gradient eye-candy . . . . . . . . . . . . . . . .: yes
Debugger stack-trace (gdb) . . . . . . . . . . . .: no
Install prefix . . . . . . . . . . . . . . . . . .: /usr