move RecordState enum from ARDOUR::Session to ARDOUR so we can use it in TriggerBox (libs)

This commit is contained in:
Paul Davis
2024-09-30 16:04:12 -06:00
parent 90858279bc
commit d7d208dc34
15 changed files with 49 additions and 55 deletions

View File

@@ -631,13 +631,13 @@ CC121::map_recenable_state ()
bool onoff;
switch (session->record_status()) {
case Session::Disabled:
case Disabled:
onoff = false;
break;
case Session::Enabled:
case Enabled:
onoff = blink_state;
break;
case Session::Recording:
case Recording:
if (session->have_rec_enabled_track ()) {
onoff = true;
} else {

View File

@@ -505,13 +505,13 @@ FaderPort::map_recenable_state ()
bool onoff;
switch (session->record_status()) {
case Session::Disabled:
case Disabled:
onoff = false;
break;
case Session::Enabled:
case Enabled:
onoff = blink_state;
break;
case Session::Recording:
case Recording:
if (session->have_rec_enabled_track ()) {
onoff = true;
} else {

View File

@@ -149,15 +149,15 @@ void
FaderPort8::notify_record_state_changed ()
{
switch (session->record_status ()) {
case Session::Disabled:
case Disabled:
_ctrls.button (FP8Controls::BtnRecord).set_active (0);
_ctrls.button (FP8Controls::BtnRecord).set_blinking (false);
break;
case Session::Enabled:
case Enabled:
_ctrls.button (FP8Controls::BtnRecord).set_active (true);
_ctrls.button (FP8Controls::BtnRecord).set_blinking (true);
break;
case Session::Recording:
case Recording:
_ctrls.button (FP8Controls::BtnRecord).set_active (true);
_ctrls.button (FP8Controls::BtnRecord).set_blinking (false);
break;

View File

@@ -1413,15 +1413,15 @@ MackieControlProtocol::notify_record_state_changed ()
LedState ls;
switch (session->record_status()) {
case Session::Disabled:
case Disabled:
DEBUG_TRACE (DEBUG::MackieControl, "record state changed to disabled, LED off\n");
ls = off;
break;
case Session::Recording:
case Recording:
DEBUG_TRACE (DEBUG::MackieControl, "record state changed to recording, LED on\n");
ls = on;
break;
case Session::Enabled:
case Enabled:
if(_device_info.is_qcon()){
// For qcon the rec button is two state only (on/off)

View File

@@ -109,15 +109,15 @@ void
Maschine2::notify_record_state_changed ()
{
switch (session->record_status ()) {
case Session::Disabled:
case Disabled:
_ctrl->button (M2Contols::Rec)->set_color (0);
_ctrl->button (M2Contols::Rec)->set_blinking (false);
break;
case Session::Enabled:
case Enabled:
_ctrl->button (M2Contols::Rec)->set_color (COLOR_WHITE);
_ctrl->button (M2Contols::Rec)->set_blinking (true);
break;
case Session::Recording:
case Recording:
_ctrl->button (M2Contols::Rec)->set_color (COLOR_WHITE);
_ctrl->button (M2Contols::Rec)->set_blinking (false);
break;

View File

@@ -736,15 +736,15 @@ Push2::notify_record_state_changed ()
}
switch (session->record_status ()) {
case Session::Disabled:
case Disabled:
b->second->set_color (LED::White);
b->second->set_state (LED::NoTransition);
break;
case Session::Enabled:
case Enabled:
b->second->set_color (LED::Red);
b->second->set_state (LED::Blinking4th);
break;
case Session::Recording:
case Recording:
b->second->set_color (LED::Red);
b->second->set_state (LED::OneShot24th);
break;

View File

@@ -1131,15 +1131,15 @@ US2400Protocol::notify_record_state_changed ()
LedState ls;
switch (session->record_status()) {
case Session::Disabled:
case Disabled:
DEBUG_TRACE (DEBUG::US2400, "record state changed to disabled, LED off\n");
ls = off;
break;
case Session::Recording:
case Recording:
DEBUG_TRACE (DEBUG::US2400, "record state changed to recording, LED on\n");
ls = on;
break;
case Session::Enabled:
case Enabled:
DEBUG_TRACE (DEBUG::US2400, "record state changed to enabled, LED flashing\n");
ls = flashing;
break;