Add session-util to create a new empty session

This commit is contained in:
Robin Gareus 2017-09-27 18:22:49 +02:00
parent eb928b05e9
commit 476952f2b6
3 changed files with 145 additions and 1 deletions

View file

@ -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)