Hello,
I have strange issue.
I have two Value
objects in AudioProcessor
like:
Value value_1;
Value value_2;
And both of them I’ve add the same listener:
class MyAudioProcessorEditor : public AudioProcessorEditor, public Value::Listener
And in the method valueChanged(Value &value)
I created if/else if
statement like:
if (value == myProcessor.value_1) { //Do something } else if (value == myProcessor.value_2) { // Do something else }
But the problem is: if I set new value for both Values
, method valueChanged(Value &value)
is called two times (as expected), but both times it goes into first if
statement.
Why is that? Is that known issue? How to deal with that?
For any help, great thanks in advance.
Best Regards