diff options
author | Luciano Iam <lucianito@gmail.com> | 2020-04-18 12:58:46 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-20 22:59:15 +0200 |
commit | bfbb15011c07aab847fe2592c2884b6bc27aafb8 (patch) | |
tree | b6315a0af407a9952446624fd22a3bfbbfcfd0a9 /libs/surfaces/websockets/globals.cc | |
parent | 5105219076687acac15b9df85a2d7f51c7437bc8 (diff) |
WebSockets: add record state support to surface
Diffstat (limited to 'libs/surfaces/websockets/globals.cc')
-rw-r--r-- | libs/surfaces/websockets/globals.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/surfaces/websockets/globals.cc b/libs/surfaces/websockets/globals.cc index 0689f32df9..3dd90cadd9 100644 --- a/libs/surfaces/websockets/globals.cc +++ b/libs/surfaces/websockets/globals.cc @@ -37,6 +37,20 @@ ArdourGlobals::set_transport_roll (bool value) } } +bool +ArdourGlobals::record_state () const +{ + return static_cast<bool>(session ().get_record_enabled ()); +} + +void +ArdourGlobals::set_record_state (bool value) +{ + if ((value && !record_state ()) || (!value && record_state ())) { + basic_ui ().rec_enable_toggle (); + } +} + double ArdourGlobals::tempo () const { |