Skip to content

AUv2: round stepped parameters, add value strings for enum parameters - #657

Open
drbafflegab wants to merge 1 commit into
free-audio:nextfrom
drbafflegab:auv2-stepped-parameters
Open

drbafflegab wants to merge 1 commit into
free-audio:nextfrom
drbafflegab:auv2-stepped-parameters

Conversation

@drbafflegab

Copy link
Copy Markdown

The AUv2 wrapper already declares stepped parameters as Indexed. But SetParameter passes the host's value on as it is, so a host can set 1.71 on a parameter with steps 0, 1 and 2. The plugin uses 2, while the AU keeps reporting 1.71, and the two disagree after a state save and restore.

This PR:

Tested with auval -strict, pluginval (strictness 10) and a small AU host that fails without the rounding.

SetParameter stored and forwarded the host's raw value, so the AU could report 1.71 for a parameter the plugin holds at 2. Enum parameters now also answer kAudioUnitProperty_ParameterValueStrings.
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.

1 participant