summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/InputPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-21 17:47:49 +0000
committerDavid Robillard <d@drobilla.net>2007-10-21 17:47:49 +0000
commit89a9cdf0ab581a4cff5cf8fd859d714a90bb8998 (patch)
tree2a9cbe5ebda35de1bab8c5a34762e112e9a2c948 /src/libs/engine/InputPort.cpp
parent22b17482a552b0966a80c19d94651385357d5701 (diff)
downloadingen-89a9cdf0ab581a4cff5cf8fd859d714a90bb8998.tar.gz
ingen-89a9cdf0ab581a4cff5cf8fd859d714a90bb8998.tar.bz2
ingen-89a9cdf0ab581a4cff5cf8fd859d714a90bb8998.zip
Fix control port value broadcasting.
git-svn-id: http://svn.drobilla.net/lad/ingen@893 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/InputPort.cpp')
-rw-r--r--src/libs/engine/InputPort.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/libs/engine/InputPort.cpp b/src/libs/engine/InputPort.cpp
index f64cf97b..7e5f6623 100644
--- a/src/libs/engine/InputPort.cpp
+++ b/src/libs/engine/InputPort.cpp
@@ -31,7 +31,12 @@ using namespace std;
namespace Ingen {
-InputPort::InputPort(NodeImpl* parent, const string& name, uint32_t index, uint32_t poly, DataType type, size_t buffer_size)
+InputPort::InputPort(NodeImpl* parent,
+ const string& name,
+ uint32_t index,
+ uint32_t poly,
+ DataType type,
+ size_t buffer_size)
: PortImpl(parent, name, index, poly, type, buffer_size)
{
}
@@ -177,7 +182,8 @@ InputPort::pre_process(ProcessContext& context)
buffer(i)->prepare_read(context.nframes());
/*cerr << path() << " poly = " << _poly << ", mixdown: " << do_mixdown
- << ", fixed buffers: " << _fixed_buffers << endl;
+ << ", fixed buffers: " << _fixed_buffers << ", joined: " << _buffers->at(0)->is_joined()
+ << " to " << _buffers->at(0)->joined_buffer() << endl;
if (type() == DataType::MIDI)
for (uint32_t i=0; i < _poly; ++i)
@@ -230,7 +236,12 @@ InputPort::post_process(ProcessContext& context)
for (uint32_t i=0; i < _poly; ++i)
buffer(i)->prepare_write(context.nframes());
- //cerr << path() << " input post: buffer: " << buffer(0) << endl;
+ /*if (_broadcast && (_type == DataType::CONTROL)) {
+ const Sample value = ((AudioBuffer*)(*_buffers)[0])->value_at(0);
+
+ cerr << path() << " input post: buffer: " << buffer(0) << " value = "
+ << value << " (last " << _last_broadcasted_value << ")" <<endl;
+ }*/
}