diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-11-15 09:21:31 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2019-08-01 12:11:31 -0500 |
commit | ca3c191d7cf01712b961eec1aa7b0e979995e2a5 (patch) | |
tree | a2186e8f0fcf2db66203b73a00fd29700966c632 /libs/ardour/ardour/session.h | |
parent | 949450bbb5a3185c51d7e2f9114c4e20fc3e1f10 (diff) |
(Source List) Source property signals (libardour part)
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r-- | libs/ardour/ardour/session.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 45dfb6fcff..0453994d33 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1754,8 +1754,20 @@ private: mutable Glib::Threads::Mutex source_lock; public: + + /* Emited when a new source is added to the session */ + PBD::Signal1< void, boost::shared_ptr<Source> > SourceAdded; + PBD::Signal1< void, boost::shared_ptr<Source> > SourceRemoved; + typedef std::map<PBD::ID,boost::shared_ptr<Source> > SourceMap; + void foreach_source (boost::function<void( boost::shared_ptr<Source> )> f) { + Glib::Threads::Mutex::Lock ls (source_lock); + for (SourceMap::iterator i = sources.begin(); i != sources.end(); ++i) { + f ( (*i).second ); + } + } + private: void reset_write_sources (bool mark_write_complete, bool force = false); SourceMap sources; |