mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
provide a better method to decide if a trigger(slot) is occupied
This is necessary with clip recording because for some short time after recording, a trigger may be playable despite not yet having a region. libs edition.
This commit is contained in:
parent
e089953e78
commit
1e8b2c521c
7 changed files with 30 additions and 25 deletions
|
|
@ -889,7 +889,7 @@ BasicUI::trigger_display_at (int x, int y)
|
|||
ARDOUR::TriggerPtr current = tb->currently_playing ();
|
||||
TriggerPtr tp = tb->trigger (_tbank_start_row + y);
|
||||
if (tp) {
|
||||
if (!tp->region()) {
|
||||
if (!tp->playable()) {
|
||||
disp.state = -1;
|
||||
} else if (tp == current) {
|
||||
disp.state = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue