summaryrefslogtreecommitdiff
path: root/libs/ardour/osc.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-01-10 14:40:42 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-01-10 14:40:42 +0000
commitaa45017cdca5d2429f503c660dad41f486a4fa05 (patch)
treecaea20362b23d3c82b99075d367873d8e1db7ea2 /libs/ardour/osc.cc
parentea98e56b1ce5341875bea765e7d72cf50a5203ce (diff)
finish merge of vamp-sdk into source tree; write OSC URL to file in ~/.ardour2 ; change stretch button name; fix bad handling of cancel-in-progress during stretch/pitch operation
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2870 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/osc.cc')
-rw-r--r--libs/ardour/osc.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/ardour/osc.cc b/libs/ardour/osc.cc
index a7d4e32db5..e2ad9a2951 100644
--- a/libs/ardour/osc.cc
+++ b/libs/ardour/osc.cc
@@ -18,6 +18,7 @@
*/
#include <iostream>
+#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <cerrno>
@@ -101,6 +102,19 @@ OSC::start ()
#endif
cerr << "OSC @ " << get_server_url () << endl;
+
+ _osc_url_file = get_user_ardour_path () + "/osc_url";
+ ofstream urlfile;
+ urlfile.open(_osc_url_file.c_str(),ios::trunc);
+ if ( urlfile )
+ {
+ urlfile << get_server_url () << endl;
+ urlfile.close();
+ }
+ else
+ {
+ cerr << "Couldn't write '" << _osc_url_file << "'" <<endl;
+ }
register_callbacks();
@@ -131,6 +145,9 @@ OSC::stop ()
unlink(_osc_unix_socket_path.c_str());
}
+ if (! _osc_url_file.empty() ) {
+ unlink(_osc_url_file.c_str() );
+ }
return 0;
}