Extend RouteProcessorChange Types to be more specific about name changes

This is in preparation for I/O Plugins to update port names,
which should not happen every time some unrelated property changes
This commit is contained in:
Robin Gareus
2025-11-22 15:43:25 +01:00
parent eeb8e8da24
commit 7181515490
2 changed files with 10 additions and 7 deletions

View File

@@ -753,12 +753,14 @@ enum AppleNSGLViewMode {
*/
struct RouteProcessorChange {
enum Type {
NoProcessorChange = 0x0,
MeterPointChange = 0x1,
RealTimeChange = 0x2,
GeneralChange = 0x4,
SendReturnChange = 0x8,
CustomPinChange = 0x10
NoProcessorChange = 0x00,
MeterPointChange = 0x01,
RealTimeChange = 0x02,
GeneralChange = 0x04,
SendReturnChange = 0x08,
CustomPinChange = 0x10,
ParameterNameChange = 0x20,
PortNameChange = 0x40
};
RouteProcessorChange () : type (GeneralChange), meter_visibly_changed (true)

View File

@@ -1626,6 +1626,7 @@ VST3PI::restartComponent (int32 flags)
}
}
}
send_processors_changed (RouteProcessorChange (RouteProcessorChange::PortNameChange, false)); /* EMIT SIGNAL */
}
if (flags & Vst::kParamTitlesChanged) {
/* titles or default values or flags have changed */
@@ -1647,7 +1648,7 @@ VST3PI::restartComponent (int32 flags)
p.normal = pi.defaultNormalizedValue;
}
}
send_processors_changed (RouteProcessorChange ()); /* EMIT SIGNAL */
send_processors_changed (RouteProcessorChange (RouteProcessorChange::ParameterNameChange, false)); /* EMIT SIGNAL */
}
if (flags & Vst::kIoChanged) {
warning << "VST3: Vst::kIoChanged (not implemented)" << endmsg;