Skip to content

Update batteur.c. Don't use sample_rate from LV2_Options#3

Open
fragfz wants to merge 1 commit into
paulfd:masterfrom
fragfz:No-sample-rate-from-Lv2-Options
Open

Update batteur.c. Don't use sample_rate from LV2_Options#3
fragfz wants to merge 1 commit into
paulfd:masterfrom
fragfz:No-sample-rate-from-Lv2-Options

Conversation

@fragfz

@fragfz fragfz commented Dec 9, 2022

Copy link
Copy Markdown
Contributor

//self->sample_rate = (float)opt->value;

Otherwise short click and double click is not detected after newer mod-host commit.

Looks now that mod-host uses atom_float_uri, sample_rate gets a wrong value. mod-audio/mod-host@0d16999

Otherwise short click and double click is not detected after mod-host commit.

//self->sample_rate = (float)opt->value;

Looks now that mod-host uses atom_float_uri, sample_rate gets a wrong value. mod-audio/mod-host@0d16999
@falkTX

falkTX commented Dec 9, 2022

Copy link
Copy Markdown

oh dang, that is a very crappy copy&paste bug. g_block_length is obviously not the sample rate.
will fix for 1.12.1 update

@paulfd

paulfd commented Dec 10, 2022

Copy link
Copy Markdown
Owner

@falkTX do you mean it's rather mod-host not sending the proper value?

@falkTX

falkTX commented Dec 10, 2022

Copy link
Copy Markdown

yes 100%. and it is not even a float pointer

@falkTX

falkTX commented Dec 14, 2022

Copy link
Copy Markdown

Fixed in mod-audio/mod-host@3d39e56
Coming in the next v1.12.1 next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants