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

This commit is contained in:
Paul Davis 2024-09-30 16:04:19 -06:00
parent d7d208dc34
commit 1146a4ad07
7 changed files with 15 additions and 15 deletions

View file

@ -1805,7 +1805,7 @@ ARDOUR_UI::transport_record (bool roll)
{
if (_session) {
switch (_session->record_status()) {
case Session::Disabled:
case Disabled:
if (_session->ntracks() == 0) {
ArdourMessageDialog msg (_main_window, _("Please create one or more tracks before trying to record.\nYou can do this with the \"Add Track or Bus\" option in the Session menu."));
msg.run ();
@ -1817,7 +1817,7 @@ ARDOUR_UI::transport_record (bool roll)
transport_roll ();
}
break;
case Session::Recording:
case Recording:
if (roll) {
_session->request_stop();
} else {
@ -1825,7 +1825,7 @@ ARDOUR_UI::transport_record (bool roll)
}
break;
case Session::Enabled:
case Enabled:
if (roll) {
transport_roll();
} else {