Minor refinement of new session util
[ardour.git] / session_utils / common.h
index fcfd04341580f59b107154da20752f3ac288f32b..679e0b5333fcc761c837b77e4e1cdd147120c4d5 100644 (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)