Parse but ignore the sample rate changes from options
This commit is contained in:
parent
a6fb656209
commit
aba9c15e50
1 changed files with 8 additions and 4 deletions
12
lv2/sfizz.c
12
lv2/sfizz.c
|
|
@ -223,13 +223,17 @@ sfizz_lv2_parse_sample_rate(sfizz_plugin_t* self, const LV2_Options_Option* opt)
|
||||||
{
|
{
|
||||||
if (opt->type == self->atom_float_uri)
|
if (opt->type == self->atom_float_uri)
|
||||||
{
|
{
|
||||||
self->sample_rate = *(float*)opt->value;
|
// self->sample_rate = *(float*)opt->value;
|
||||||
LV2_DEBUG("Set the sample rate to %f", self->sample_rate);
|
LV2_DEBUG("Attempted to change the sample rate to %.2f (original was %.2f); ignored",
|
||||||
|
*(float*)opt->value,
|
||||||
|
self->sample_rate);
|
||||||
}
|
}
|
||||||
else if (opt->type == self->atom_int_uri)
|
else if (opt->type == self->atom_int_uri)
|
||||||
{
|
{
|
||||||
self->sample_rate = *(int*)opt->value;
|
// self->sample_rate = *(int*)opt->value;
|
||||||
LV2_DEBUG("Set the sample rate to %f", self->sample_rate);
|
LV2_DEBUG("Attempted to change the sample rate to %d (original was %.2f); ignored",
|
||||||
|
*(int*)opt->value,
|
||||||
|
self->sample_rate);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue