diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-27 18:22:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-09-27 18:22:49 +0200 |
commit | 476952f2b60f595c2d7378af1b3db4eb41e2c13c (patch) | |
tree | 423af518c23cc0c86c05c800e95113784b8ca56a /session_utils/common.h | |
parent | eb928b05e98260d6e2079b104b75267058633a1d (diff) |
Add session-util to create a new empty session
Diffstat (limited to 'session_utils/common.h')
-rw-r--r-- | session_utils/common.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/session_utils/common.h b/session_utils/common.h index fcfd043415..679e0b5333 100644 --- a/session_utils/common.h +++ b/session_utils/common.h @@ -25,8 +25,15 @@ namespace SessionUtils { /** @param dir Session directory. * @param state Session state file, without .ardour suffix. + * @returns an ardour session object (free with \ref unload_session) or NULL */ - ARDOUR::Session * load_session (std::string dir, std::string state, bool exit_at_failure = true); + ARDOUR::Session* load_session (std::string dir, std::string state, bool exit_at_failure = true); + + /** @param dir Session directory. + * @param state Session state file, without .ardour suffix. + * @returns an ardour session object (free with \ref unload_session) or NULL on error + */ + ARDOUR::Session* create_session (std::string dir, std::string state, float sample_rate); /** close session and stop engine * @param s Session to close (may me NULL) |