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:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user