From 4637ceb876904731d2628563e96a89961f9b7781 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 22 Aug 2008 03:26:33 +0000 Subject: Lash D-Bus support and projects list from LADI Patchage, with improvements/cleanup/sanification/etc. Remove liblash stuff (meh, what the hell... here's to new beginnings). Enable/disable/hide/etc patchage widgets better based on available (compiled in) functionality. git-svn-id: http://svn.drobilla.net/lad/patchage@1462 a436a847-0d15-0410-975c-d299462d15a1 --- src/JackDriver.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/JackDriver.cpp') diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index 2b98ecb..d31d499 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -68,7 +68,7 @@ JackDriver::attach(bool launch_daemon) jack_options_t options = (!launch_daemon) ? JackNoStartServer : JackNullOption; _client = jack_client_open("Patchage", options, NULL); if (_client == NULL) { - _app->status_message("[JACK] Unable to create client"); + _app->status_msg("[JACK] Unable to create client"); _is_activated = false; } else { jack_client_t* const client = _client; @@ -87,9 +87,9 @@ JackDriver::attach(bool launch_daemon) if (!jack_activate(client)) { _is_activated = true; signal_attached.emit(); - _app->status_message("[JACK] Attached"); + _app->status_msg("[JACK] Attached"); } else { - _app->status_message("[JACK] ERROR: Failed to attach"); + _app->status_msg("[JACK] ERROR: Failed to attach"); _is_activated = false; } } @@ -108,7 +108,7 @@ JackDriver::detach() destroy_all_ports(); _is_activated = false; signal_detached.emit(); - _app->status_message("[JACK] Detached"); + _app->status_msg("[JACK] Detached"); } } @@ -388,10 +388,10 @@ JackDriver::connect(boost::shared_ptr src_port, boost::shared_ptr< int result = jack_connect(_client, src_port->full_name().c_str(), dst_port->full_name().c_str()); if (result == 0) - _app->status_message(string("[JACK] Connected ") + _app->status_msg(string("[JACK] Connected ") + src_port->full_name() + " -> " + dst_port->full_name()); else - _app->status_message(string("[JACK] Unable to connect ") + _app->status_msg(string("[JACK] Unable to connect ") + src_port->full_name() + " -> " + dst_port->full_name()); return (!result); @@ -411,10 +411,10 @@ JackDriver::disconnect(boost::shared_ptr const src_port, boost::sh int result = jack_disconnect(_client, src_port->full_name().c_str(), dst_port->full_name().c_str()); if (result == 0) - _app->status_message(string("[JACK] Disconnected ") + _app->status_msg(string("[JACK] Disconnected ") + src_port->full_name() + " -> " + dst_port->full_name()); else - _app->status_message(string("[JACK] Unable to disconnect ") + _app->status_msg(string("[JACK] Unable to disconnect ") + src_port->full_name() + " -> " + dst_port->full_name()); return (!result); @@ -574,7 +574,7 @@ JackDriver::set_buffer_size(jack_nframes_t size) } if (jack_set_buffer_size(_client, size)) { - _app->status_message("[JACK] ERROR: Unable to set buffer size"); + _app->status_msg("[JACK] ERROR: Unable to set buffer size"); return false; } else { return true; -- cgit v1.2.1