summaryrefslogtreecommitdiffstats
path: root/src/JackDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-14 20:35:43 +0000
committerDavid Robillard <d@drobilla.net>2010-12-14 20:35:43 +0000
commitd9a54049e99f6c3963e1f48e04b9a7adcd81899b (patch)
tree42fb887b2a97c96f550110b88ab18891c6d9da2f /src/JackDriver.cpp
parent14921f4a865f0eb06b45cd70e3ee71e42a8148e0 (diff)
downloadpatchage-d9a54049e99f6c3963e1f48e04b9a7adcd81899b.tar.gz
patchage-d9a54049e99f6c3963e1f48e04b9a7adcd81899b.tar.bz2
patchage-d9a54049e99f6c3963e1f48e04b9a7adcd81899b.zip
Use Raul::log for console logging.
Print error message if unsubscribed client is not found (Re: ticket #137). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2684 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r--src/JackDriver.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp
index ef67747..e16ee3f 100644
--- a/src/JackDriver.cpp
+++ b/src/JackDriver.cpp
@@ -19,11 +19,11 @@
#include <cstring>
#include <string>
#include <set>
-#include <iostream>
#include "patchage-config.h"
#include <jack/jack.h>
#include <jack/statistics.h>
#include <jack/thread.h>
+#include "raul/log.hpp"
#include "raul/SharedPtr.hpp"
#include "PatchageCanvas.hpp"
#include "PatchageEvent.hpp"
@@ -210,7 +210,7 @@ JackDriver::create_port(boost::shared_ptr<PatchageModule> parent, jack_port_t* p
port_type = JACK_MIDI;
#endif
} else {
- cerr << "WARNING: " << jack_port_name(port) << " has unknown type \'" << type_str << "\'" << endl;
+ Raul::warn << jack_port_name(port) << " has unknown type \'" << type_str << "\'" << endl;
return boost::shared_ptr<PatchagePort>();
}
@@ -296,7 +296,7 @@ JackDriver::refresh()
port_type = JACK_MIDI;
#endif
} else {
- cerr << "WARNING: " << ports[i] << " has unknown type \'" << type_str << "\'" << endl;
+ Raul::warn << ports[i] << " has unknown type \'" << type_str << "\'" << endl;
continue;
}
@@ -525,7 +525,7 @@ JackDriver::jack_xrun_cb(void* jack_driver)
void
JackDriver::jack_shutdown_cb(void* jack_driver)
{
- cerr << "[JACK] Shutdown" << endl;
+ Raul::info << "[JACK] Shutdown" << endl;
assert(jack_driver);
JackDriver* me = reinterpret_cast<JackDriver*>(jack_driver);
Glib::Mutex::Lock lock(me->_shutdown_mutex);
@@ -538,7 +538,7 @@ JackDriver::jack_shutdown_cb(void* jack_driver)
void
JackDriver::error_cb(const char* msg)
{
- cerr << "[JACK] ERROR: " << msg << endl;
+ Raul::error << "[JACK] " << msg << endl;
}