Add new static Session signal will be emitted after port reconnection on session load.

This commit is contained in:
Paul Davis 2021-11-03 15:03:40 -06:00
parent 79330f909e
commit f3481df9d4
2 changed files with 8 additions and 0 deletions

View File

@ -891,6 +891,13 @@ public:
*/
static PBD::Signal0<int> AskAboutPendingState;
/** after loading a session, once all ports have been created and connected
* signal is emitted to let objects that need to do some housekeeping
* post-connect.
*/
static PBD::Signal0<void> AfterConnect;
boost::shared_ptr<AudioFileSource> create_audio_source_for_session (
size_t, std::string const &, uint32_t);

View File

@ -1341,6 +1341,7 @@ Session::hookup_io ()
AudioEngine::instance()->reconnect_ports ();
TransportMasterManager::instance().reconnect_ports ();
AfterConnect (); /* EMIT SIGNAL */
/* Anyone who cares about input state, wake up and do something */