2016-02-21 16:08:36 -05:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2016-2017 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2016-2018 Robin Gareus <robin@gareus.org>
|
2016-02-21 16:08:36 -05:00
|
|
|
*
|
2019-08-02 17:26:43 -04:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2016-02-21 16:08:36 -05:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2019-08-02 17:26:43 -04:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2016-02-21 16:08:36 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
// editor
|
|
|
|
#if 0
|
2024-08-19 15:43:06 -04:00
|
|
|
STATIC(SessionLoad, &)
|
|
|
|
STATIC(SessionClose, &)
|
2016-02-21 16:08:36 -05:00
|
|
|
#endif
|
2024-08-19 15:43:06 -04:00
|
|
|
STATIC(ConfigChanged, &ARDOUR::Config->ParameterChanged)
|
2016-02-21 16:08:36 -05:00
|
|
|
|
|
|
|
// engine instance
|
2024-08-19 15:43:06 -04:00
|
|
|
ENGINE(EngineRunning, Running)
|
|
|
|
ENGINE(EngineStopped, Stopped)
|
|
|
|
ENGINE(EngineHalted, Halted)
|
|
|
|
ENGINE(EngineDeviceListChanged, DeviceListChanged)
|
|
|
|
ENGINE(BufferSizeChanged, BufferSizeChanged)
|
|
|
|
ENGINE(SampleRateChanged, SampleRateChanged)
|
2016-02-21 16:08:36 -05:00
|
|
|
|
|
|
|
// session static
|
2024-08-19 15:43:06 -04:00
|
|
|
STATIC(FeedbackDetected, &ARDOUR::Session::FeedbackDetected)
|
|
|
|
STATIC(SuccessfulGraphSort, &ARDOUR::Session::SuccessfulGraphSort)
|
|
|
|
STATIC(StartTimeChanged, &ARDOUR::Session::StartTimeChanged)
|
|
|
|
STATIC(EndTimeChanged, &ARDOUR::Session::EndTimeChanged)
|
|
|
|
STATIC(Exported, &ARDOUR::Session::Exported)
|
2016-02-21 16:08:36 -05:00
|
|
|
|
2016-06-01 09:12:26 -04:00
|
|
|
// stripable static globals
|
2024-08-19 15:43:06 -04:00
|
|
|
STATIC(Change, &PresentationInfo::Change)
|
2016-06-01 09:12:26 -04:00
|
|
|
|
2016-02-21 16:08:36 -05:00
|
|
|
// session specific (re-subscribe when session changes)
|
2024-08-19 15:43:06 -04:00
|
|
|
SESSION(SessionConfigChanged, config.ParameterChanged)
|
|
|
|
SESSION(TransportStateChange, TransportStateChange)
|
|
|
|
SESSION(DirtyChanged, DirtyChanged)
|
|
|
|
SESSION(StateSaved, StateSaved)
|
|
|
|
SESSION(Xrun, Xrun)
|
|
|
|
SESSION(TransportLooped, TransportLooped)
|
|
|
|
SESSION(SoloActive, SoloActive)
|
|
|
|
SESSION(SoloChanged, SoloChanged)
|
|
|
|
SESSION(IsolatedChanged, IsolatedChanged)
|
|
|
|
SESSION(MonitorChanged, MonitorChanged)
|
|
|
|
SESSION(RecordStateChanged, RecordStateChanged)
|
|
|
|
SESSION(RecordArmStateChanged, RecordArmStateChanged)
|
|
|
|
SESSION(AudioLoopLocationChanged, auto_loop_location_changed)
|
|
|
|
SESSION(AudioPunchLocationChanged, auto_punch_location_changed)
|
|
|
|
SESSION(LocationsModified, locations_modified)
|
|
|
|
SESSION(AuditionActive, AuditionActive)
|
|
|
|
SESSION(BundleAddedOrRemoved, BundleAddedOrRemoved)
|
|
|
|
SESSION(PositionChanged, PositionChanged)
|
|
|
|
SESSION(Located, Located)
|
|
|
|
SESSION(RoutesReconnected, session_routes_reconnected)
|
|
|
|
SESSION(RouteAdded, RouteAdded)
|
|
|
|
SESSION(RouteGroupPropertyChanged, RouteGroupPropertyChanged)
|
|
|
|
SESSION(RouteAddedToRouteGroup, RouteAddedToRouteGroup)
|
|
|
|
SESSION(RouteRemovedFromRouteGroup, RouteRemovedFromRouteGroup)
|
|
|
|
SESSION(StepEditStatusChange, StepEditStatusChange)
|
|
|
|
SESSION(RouteGroupAdded, route_group_added)
|
|
|
|
SESSION(RouteGroupRemoved, route_group_removed)
|
|
|
|
SESSION(RouteGroupsReordered, route_groups_reordered)
|
2016-02-21 16:08:36 -05:00
|
|
|
|
|
|
|
// plugin manager instance
|
2024-08-19 15:43:06 -04:00
|
|
|
STATIC(PluginListChanged, &(PluginManager::instance().PluginListChanged))
|
|
|
|
STATIC(PluginStatusChanged, &(PluginManager::instance().PluginStatusChanged))
|
|
|
|
//STATIC(PluginStatusesChanged, &(PluginManager::instance().PluginTagsChanged))
|
2016-02-21 16:08:36 -05:00
|
|
|
|
|
|
|
// Diskstream static global
|
2024-08-19 15:43:06 -04:00
|
|
|
STATIC(DiskOverrun, &ARDOUR::DiskWriter::Overrun)
|
|
|
|
STATIC(DiskUnderrun, &ARDOUR::DiskReader::Underrun)
|
2016-02-21 16:08:36 -05:00
|
|
|
|
|
|
|
// Region static
|
2024-08-19 15:43:06 -04:00
|
|
|
STATIC(RegionsPropertyChanged, &ARDOUR::Region::RegionsPropertyChanged)
|
2016-02-21 16:08:36 -05:00
|
|
|
|
2016-07-22 08:42:38 -04:00
|
|
|
// Timers
|
2024-08-19 15:43:06 -04:00
|
|
|
STATIC(LuaTimerS, &LuaInstance::LuaTimerS)
|
|
|
|
STATIC(LuaTimerDS, &LuaInstance::LuaTimerDS)
|
2016-07-22 08:42:38 -04:00
|
|
|
|
2017-08-09 08:09:27 -04:00
|
|
|
// Session load
|
2024-08-19 15:43:06 -04:00
|
|
|
STATIC(SetSession, &LuaInstance::SetSession)
|
2017-08-09 08:09:27 -04:00
|
|
|
|
2023-07-04 15:06:25 -04:00
|
|
|
// Editor Selection Changed
|
2024-08-19 15:43:06 -04:00
|
|
|
STATIC(SelectionChanged, &LuaInstance::SelectionChanged)
|
2023-07-04 15:06:25 -04:00
|
|
|
|
2016-02-21 16:08:36 -05:00
|
|
|
// TODO per track/route signals,
|
|
|
|
// TODO per plugin actions / controllables
|
|
|
|
// TODO per region actions
|
|
|
|
//SESSIONOBJECT(PropertyChanged, &ARDOUR::Stateful::PropertyChanged, 1)
|
|
|
|
|
|
|
|
// TODO any location action
|
2023-07-05 13:38:51 -04:00
|
|
|
|
|
|
|
// /////////////////////////////////////////////////////////////////////
|
|
|
|
// NOTE: WHEN ADDING/REMOVING SIGNALS, UPDATE libs/ardour/luabindings.cc
|
|
|
|
// TO MATCH THE TOTAL NUMBER OF SIGNALS.
|
|
|
|
//
|
|
|
|
// CLASSKEYS(std::bitset<50ul>); // LuaSignal::LAST_SIGNAL
|
|
|
|
// /////////////////////////////////////////////////////////////////////
|