Skip to content

Commit

Permalink
Fixes changes in plugin UI not getting passed on to the audio compone…
Browse files Browse the repository at this point in the history
…nt - this was working before the initial release and due to disabling of an unfinished feature broke :/
  • Loading branch information
azeno committed Nov 27, 2024
1 parent 8eb30f8 commit 99d1fe4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deployment/VL.Audio.VST.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>VL.Audio.VST</id>
<version>0.0.9-alpha</version>
<version>0.0.10-alpha</version>
<title>VL.Audio.VST</title>
<authors>vvvv</authors>
<projectUrl>https://github.com/vvvv/VL.Audio.VST</projectUrl>
Expand Down
14 changes: 9 additions & 5 deletions src/EffectHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,15 @@ void IComponentHandler.endEdit(uint id)

void IComponentHandler.performEdit(uint id, double valueNormalized)
{
if (!channels.TryGetValue(id, out var x))
return;

var (parameter, channel) = x;
channel.Object = parameter.GetValueAsObject(valueNormalized);
if (channels.TryGetValue(id, out var x))
{
var (parameter, channel) = x;
channel.Object = parameter.GetValueAsObject(valueNormalized);
}
else
{
SetParameter(id, valueNormalized);
}
}

void IComponentHandler.restartComponent(RestartFlags flags)
Expand Down
1 change: 1 addition & 0 deletions src/VL.Audio.VST.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{05EC4CAB-1E18-4BA4-BB68-E5EB7D76B77A}"
ProjectSection(SolutionItems) = preProject
..\README.md = ..\README.md
..\deployment\VL.Audio.VST.nuspec = ..\deployment\VL.Audio.VST.nuspec
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VSTHost", "..\sandbox\VSTHost\VSTHost.csproj", "{ABF12C76-AD6A-4E0B-9B93-488BABA29A38}"
Expand Down

0 comments on commit 99d1fe4

Please sign in to comment.