summaryrefslogtreecommitdiffstats
path: root/src/engine/ConnectionImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-01-06 23:49:17 +0000
committerDavid Robillard <d@drobilla.net>2010-01-06 23:49:17 +0000
commitcb5e934666e128e27faa95587fbdecf01f0e324d (patch)
tree1e694e2812381efbb3eb4b5ace2cdecc118b29f6 /src/engine/ConnectionImpl.cpp
parent092eb35edb999a9dd809e197d7dd9a4ebb0d6bd5 (diff)
downloadingen-cb5e934666e128e27faa95587fbdecf01f0e324d.tar.gz
ingen-cb5e934666e128e27faa95587fbdecf01f0e324d.tar.bz2
ingen-cb5e934666e128e27faa95587fbdecf01f0e324d.zip
Do all logging output via Raul streams.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2349 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/ConnectionImpl.cpp')
-rw-r--r--src/engine/ConnectionImpl.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/engine/ConnectionImpl.cpp b/src/engine/ConnectionImpl.cpp
index 47fdce36..a266a5ef 100644
--- a/src/engine/ConnectionImpl.cpp
+++ b/src/engine/ConnectionImpl.cpp
@@ -16,6 +16,7 @@
*/
#include <algorithm>
+#include "raul/log.hpp"
#include "raul/Maid.hpp"
#include "raul/IntrusivePtr.hpp"
#include "AudioBuffer.hpp"
@@ -65,7 +66,7 @@ ConnectionImpl::ConnectionImpl(BufferFactory& bufs, PortImpl* src_port, PortImpl
void
ConnectionImpl::dump() const
{
- cerr << _src_port->path() << " -> " << _dst_port->path()
+ debug << _src_port->path() << " -> " << _dst_port->path()
<< (must_mix() ? " (MIX) " : " (DIRECT) ")
<< (must_queue() ? " (QUEUE)" : " (NOQUEUE)") << endl;
}
@@ -106,13 +107,13 @@ ConnectionImpl::process(Context& context)
if (must_queue()) {
IntrusivePtr<EventBuffer> src_buf = PtrCast<EventBuffer>(_src_port->buffer(0));
if (!src_buf) {
- cerr << "ERROR: Queued connection but source is not an EventBuffer" << endl;
+ error << "Queued connection but source is not an EventBuffer" << endl;
return;
}
IntrusivePtr<ObjectBuffer> local_buf = PtrCast<ObjectBuffer>(_local_buffer);
if (!local_buf) {
- cerr << "ERROR: Queued connection but local buffer is not an ObjectBuffer" << endl;
+ error << "Queued connection but local buffer is not an ObjectBuffer" << endl;
return;
}
@@ -141,18 +142,18 @@ ConnectionImpl::queue(Context& context)
IntrusivePtr<EventBuffer> src_buf = PtrCast<EventBuffer>(_src_port->buffer(0));
if (!src_buf) {
- cerr << "ERROR: Queued connection but source is not an EventBuffer" << endl;
+ error << "Queued connection but source is not an EventBuffer" << endl;
return;
}
while (src_buf->is_valid()) {
LV2_Event* ev = src_buf->get_event();
LV2_Object* obj = LV2_OBJECT_FROM_EVENT(ev);
- /*cout << _src_port->path() << " -> " << _dst_port->path()
+ /*debug << _src_port->path() << " -> " << _dst_port->path()
<< " QUEUE OBJECT TYPE " << obj->type << ":";
for (size_t i = 0; i < obj->size; ++i)
- cout << " " << std::hex << (int)obj->body[i];
- cout << endl;*/
+ debug << " " << std::hex << (int)obj->body[i];
+ debug << endl;*/
_queue->write(sizeof(LV2_Object) + obj->size, obj);
src_buf->increment();