summaryrefslogtreecommitdiffstats
path: root/src/server/ConnectionImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-28 18:19:28 +0000
committerDavid Robillard <d@drobilla.net>2011-04-28 18:19:28 +0000
commit30b375cc910a2ce70d869cfc3496a0d06b7e1775 (patch)
tree8e2ab572b40059f40e5ecb88dc43e7728858be54 /src/server/ConnectionImpl.cpp
parentf936a6da1f4885db54365d81ee5959e84d359e85 (diff)
downloadingen-30b375cc910a2ce70d869cfc3496a0d06b7e1775.tar.gz
ingen-30b375cc910a2ce70d869cfc3496a0d06b7e1775.tar.bz2
ingen-30b375cc910a2ce70d869cfc3496a0d06b7e1775.zip
Improve RingBuffer implementation.
Previous implementation was broken when written to full capacity, and this version is significantly faster as well. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3213 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/ConnectionImpl.cpp')
-rw-r--r--src/server/ConnectionImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/ConnectionImpl.cpp b/src/server/ConnectionImpl.cpp
index 1e339910..8da76aeb 100644
--- a/src/server/ConnectionImpl.cpp
+++ b/src/server/ConnectionImpl.cpp
@@ -76,7 +76,7 @@ ConnectionImpl::get_sources(Context& context, uint32_t voice,
IntrusivePtr<Buffer> buf = context.engine().buffer_factory()->get(
dst_port()->buffer_type(), sizeof(LV2_Atom) + obj.size);
void* data = buf->port_data(PortType::MESSAGE, context.offset());
- _queue->full_read(sizeof(LV2_Atom) + obj.size, (LV2_Atom*)data);
+ _queue->read(sizeof(LV2_Atom) + obj.size, (LV2_Atom*)data);
srcs[num_srcs++] = buf;
} else if (must_mix()) {
// Mixing down voices: every src voice mixed into every dst voice