diff options
author | Robin Gareus <robin@gareus.org> | 2015-12-16 00:25:07 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-12-16 00:25:07 +0100 |
commit | b228c1131187f3822ece3bd6ed26869a68fb0dff (patch) | |
tree | cea750878ac04fc188f68c1fb761ff9422c8dab8 /session_utils/example.cc | |
parent | f05afd973b538a2e1543423f42d6859c0254f7ca (diff) |
commandline session utilities
Diffstat (limited to 'session_utils/example.cc')
-rw-r--r-- | session_utils/example.cc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/session_utils/example.cc b/session_utils/example.cc new file mode 100644 index 0000000000..044d40e17c --- /dev/null +++ b/session_utils/example.cc @@ -0,0 +1,30 @@ +#include <iostream> +#include <cstdlib> + +#include "common.h" + +using namespace std; +using namespace ARDOUR; +using namespace SessionUtils; + +int main (int argc, char* argv[]) +{ + SessionUtils::init(); + Session* s = 0; + + s = SessionUtils::load_session ( + "/home/rgareus/Documents/ArdourSessions/TestA/", + "TestA" + ); + + printf ("SESSION INFO: routes: %lu\n", s->get_routes()->size ()); + + sleep(2); + + //s->save_state (""); + + SessionUtils::unload_session(s); + SessionUtils::cleanup(); + + return 0; +} |