summaryrefslogtreecommitdiff
path: root/session_utils/example.cc
diff options
context:
space:
mode:
Diffstat (limited to 'session_utils/example.cc')
-rw-r--r--session_utils/example.cc30
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;
+}