1 #ifndef _session_utils_common_h_
2 #define _session_utils_common_h_
4 #include "pbd/transmitter.h"
5 #include "pbd/receiver.h"
7 #include "ardour/ardour.h"
8 #include "ardour/session.h"
10 class TestReceiver : public Receiver
13 void receive (Transmitter::Channel chn, const char * str);
16 namespace SessionUtils {
18 /** initialize libardour */
19 void init (bool print_log = true);
21 /** clean up, stop Processing Engine
22 * @param s Session to close (may me NULL)
26 /** @param dir Session directory.
27 * @param state Session state file, without .ardour suffix.
29 ARDOUR::Session * load_session (std::string dir, std::string state, bool exit_at_failure = true);
31 /** close session and stop engine
32 * @param s Session to close (may me NULL)
34 void unload_session (ARDOUR::Session *s);
38 #endif /* _session_utils_misc_h_ */