Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lv2/batteur.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ instantiate(const LV2_Descriptor* descriptor,
lv2_log_warning(&self->logger, "Got a sample rate but the type was wrong\n");
continue;
}
self->sample_rate = *(float*)opt->value;
//self->sample_rate = *(float*)opt->value;
} else if (!self->expect_nominal_block_length && opt->key == self->max_block_length_uri) {
if (opt->type != self->atom_int_uri) {
lv2_log_warning(&self->logger, "Got a max block size but the type was wrong\n");
Expand Down Expand Up @@ -730,7 +730,7 @@ lv2_set_options(LV2_Handle instance, const LV2_Options_Option* options)
lv2_log_warning(&self->logger, "Got a sample rate but the type was wrong\n");
continue;
}
self->sample_rate = *(float*)opt->value;
//self->sample_rate = *(float*)opt->value;
batteur_set_sample_rate(self->player, self->sample_rate);
} else if (!self->expect_nominal_block_length && opt->key == self->max_block_length_uri) {
if (opt->type != self->atom_int_uri) {
Expand Down