trackviewitem: receive signal when mute is changed from another source
This commit is contained in:
@@ -44,6 +44,7 @@ TrackOutput::TrackOutput() :
|
||||
|
||||
muted_input_ = new NodeInput("muted_in", NodeParam::kBoolean);
|
||||
muted_input_->set_is_keyframable(false);
|
||||
connect(muted_input_, &NodeInput::ValueChanged, this, &TrackOutput::MutedInputValueChanged);
|
||||
AddInput(muted_input_);
|
||||
|
||||
// Set default height
|
||||
@@ -574,4 +575,9 @@ void TrackOutput::BlockLengthChanged()
|
||||
UpdateInOutFrom(index);
|
||||
}
|
||||
|
||||
void TrackOutput::MutedInputValueChanged()
|
||||
{
|
||||
emit MutedChanged(IsMuted());
|
||||
}
|
||||
|
||||
OLIVE_NAMESPACE_EXIT
|
||||
|
||||
Reference in New Issue
Block a user