I am using a
Value with a Listener attached to detect whenever its value has actually changed and react to that (by sending the changed value via OSC). I update via
Value::setValue and register a
Value::Listener. Note that this hat previously worked, presumably in JUCE 5, but for some reason I’m not seeing any updates anymore.
If I call
sendChangeMessage(true) after setting the value I get the callback as expected, however I loose the property that I only get notified when the value is different from the previous value.
I investigated a bit and everything seems correct in so far, that the
triggerAsyncUpdate of the
ValueSource is correctly called. However, the
handleAsyncUpdate never gets executed. I checked by inheriting
ValueSource publicly instead of privately from
AsyncUpdater and checking
isUpdatePending() at different locations, which always returns true. So it seems that the event thread (?) or whoever is responsible for executing the asynchronous updates is not working for some reason.
The code is part of a VST3 Plugin on Linux, hosted in Bitwig Studio.