mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 15:16:25 +01:00
no slot rec-enabling if the track is rec-enabled
This commit is contained in:
parent
1e7480665c
commit
b2d011442a
1 changed files with 10 additions and 1 deletions
|
|
@ -293,6 +293,16 @@ Trigger::request_trigger_delete (Trigger* t)
|
||||||
void
|
void
|
||||||
Trigger::_arm (Temporal::BBT_Offset const & duration)
|
Trigger::_arm (Temporal::BBT_Offset const & duration)
|
||||||
{
|
{
|
||||||
|
Track* trk = static_cast<Track*> (_box.owner());
|
||||||
|
|
||||||
|
if (trk->rec_enable_control()->get_value()) {
|
||||||
|
/* Cannot arm slots for recording if track is rec-enabled,
|
||||||
|
since that creates ambiguity about what the track is doing
|
||||||
|
during a process callback
|
||||||
|
*/
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_box.record_enabled() == Recording) {
|
if (_box.record_enabled() == Recording) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -301,7 +311,6 @@ Trigger::_arm (Temporal::BBT_Offset const & duration)
|
||||||
|
|
||||||
_box.disarm_all ();
|
_box.disarm_all ();
|
||||||
|
|
||||||
Track* trk = static_cast<Track*> (_box.owner());
|
|
||||||
int chns;
|
int chns;
|
||||||
|
|
||||||
if (trk->data_type() == DataType::AUDIO) {
|
if (trk->data_type() == DataType::AUDIO) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue