Skip to content

Commit

Permalink
Corrected a bug where the sample rate would be incorrectly set
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfd committed Dec 13, 2019
1 parent 862dfca commit f012d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lv2/sfizz.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,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 = *(int*)opt->value;
}
else if (!self->expect_nominal_block_length && opt->key == self->max_block_length_uri)
{
Expand Down Expand Up @@ -664,7 +664,7 @@ lv2_set_options(LV2_Handle instance, const LV2_Options_Option *options)
lv2_log_warning(&self->logger, "[sfizz] Got a sample rate but the type was wrong\n");
continue;
}
self->sample_rate = *(float *)opt->value;
self->sample_rate = *(int*)opt->value;
sfizz_set_sample_rate(self->synth, self->sample_rate);
}
else if (!self->expect_nominal_block_length && opt->key == self->max_block_length_uri)
Expand Down

0 comments on commit f012d45

Please sign in to comment.