diff options
author | Robin Gareus <robin@gareus.org> | 2014-06-26 19:04:06 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-06-26 19:15:39 +0200 |
commit | 7cb6e9065a577adaecf3d52e8fc472f671b558d6 (patch) | |
tree | 2a19ce087ef41bf61e28bbcdc15fcb11cbf49454 /libs/ardour/ardour/diskstream.h | |
parent | c596e8dd87bbad9599e2c8619f03dcdb25564b69 (diff) |
allow to set custom file name for each diststream
Diffstat (limited to 'libs/ardour/ardour/diskstream.h')
-rw-r--r-- | libs/ardour/ardour/diskstream.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/ardour/diskstream.h b/libs/ardour/ardour/diskstream.h index dd74d5cb52..055a298d84 100644 --- a/libs/ardour/ardour/diskstream.h +++ b/libs/ardour/ardour/diskstream.h @@ -70,6 +70,15 @@ class LIBARDOUR_API Diskstream : public SessionObject, public PublicDiskstream virtual ~Diskstream(); virtual bool set_name (const std::string& str); + virtual bool set_write_source_name (const std::string& str); + + std::string write_source_name () const { + if (_write_source_name.empty()) { + return name(); + } else { + return _write_source_name; + } + } virtual std::string steal_write_source_name () { return std::string(); } @@ -312,6 +321,8 @@ class LIBARDOUR_API Diskstream : public SessionObject, public PublicDiskstream bool in_set_state; + std::string _write_source_name; + Glib::Threads::Mutex state_lock; PBD::ScopedConnectionList playlist_connections; |