summaryrefslogtreecommitdiffstats
path: root/src/server/InputPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-12 05:16:58 +0000
committerDavid Robillard <d@drobilla.net>2012-08-12 05:16:58 +0000
commit65a81eec8943dc0504b8b8755f9866ee4993372c (patch)
tree65ba6d09f13bee9c40fe5f82185174ce388134b0 /src/server/InputPort.cpp
parente49cb96073f514edbe1b7a9854b49c47af35463c (diff)
downloadingen-65a81eec8943dc0504b8b8755f9866ee4993372c.tar.gz
ingen-65a81eec8943dc0504b8b8755f9866ee4993372c.tar.bz2
ingen-65a81eec8943dc0504b8b8755f9866ee4993372c.zip
Remove message context cruft.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4668 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/InputPort.cpp')
-rw-r--r--src/server/InputPort.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index 6ac2eb5e..8e50e3b8 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -75,13 +75,12 @@ InputPort::apply_poly(ProcessContext& context, Raul::Maid& maid, uint32_t poly)
* @return true iff buffers are locally owned by the port
*/
bool
-InputPort::get_buffers(Context& context,
- BufferFactory& bufs,
+InputPort::get_buffers(BufferFactory& bufs,
Raul::Array<BufferRef>* buffers,
- uint32_t poly) const
+ uint32_t poly,
+ bool real_time) const
{
- const bool is_process_context = bufs.engine().is_process_context(context);
- size_t num_edges = is_process_context ? _edges.size() : _num_edges;
+ const size_t num_edges = real_time ? _edges.size() : _num_edges;
if (is_a(PortType::AUDIO) && num_edges == 0) {
// Audio input with no edges, use shared zero buffer
@@ -91,7 +90,7 @@ InputPort::get_buffers(Context& context,
return false;
} else if (num_edges == 1) {
- if (is_process_context) {
+ if (real_time) {
if (!_edges.front().must_mix()) {
// Single non-mixing connection, use buffers directly
for (uint32_t v = 0; v < poly; ++v) {
@@ -105,7 +104,7 @@ InputPort::get_buffers(Context& context,
// Otherwise, allocate local buffers
for (uint32_t v = 0; v < poly; ++v) {
buffers->at(v).reset();
- buffers->at(v) = bufs.get(context, buffer_type(), _buffer_size);
+ buffers->at(v) = bufs.get(buffer_type(), _buffer_size, real_time);
buffers->at(v)->clear();
}
return true;