Better choice for ports on external send creation
[ardour.git] / session_utils / example.cc
1 #include <iostream>
2 #include <cstdlib>
3
4 #include "common.h"
5
6 using namespace std;
7 using namespace ARDOUR;
8 using namespace SessionUtils;
9
10 int main (int argc, char* argv[])
11 {
12         SessionUtils::init();
13         Session* s = 0;
14
15         s = SessionUtils::load_session (
16                         "/home/rgareus/Documents/ArdourSessions/TestA/",
17                         "TestA"
18                         );
19
20         printf ("SESSION INFO: routes: %lu\n", s->get_routes()->size ());
21
22         sleep(2);
23
24         //s->save_state ("");
25
26         SessionUtils::unload_session(s);
27         SessionUtils::cleanup();
28
29         return 0;
30 }