summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-20 02:24:26 +0100
committerDavid Robillard <d@drobilla.net>2017-03-20 03:19:33 +0100
commit60759acb8f09fbdb8e07102aa2859ce3c804e04a (patch)
tree1723fb9ccc1d7731eba5dabab0eda35169fcb62b /src
parentd90e7b1a36039fc4f489278f25a447c9a5fcc9d7 (diff)
downloadingen-60759acb8f09fbdb8e07102aa2859ce3c804e04a.tar.gz
ingen-60759acb8f09fbdb8e07102aa2859ce3c804e04a.tar.bz2
ingen-60759acb8f09fbdb8e07102aa2859ce3c804e04a.zip
Fix clear_buffers() prototype
Diffstat (limited to 'src')
-rw-r--r--src/server/GraphImpl.cpp2
-rw-r--r--src/server/PortImpl.cpp4
-rw-r--r--src/server/PortImpl.hpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/server/GraphImpl.cpp b/src/server/GraphImpl.cpp
index 1311755d..adfb433d 100644
--- a/src/server/GraphImpl.cpp
+++ b/src/server/GraphImpl.cpp
@@ -154,7 +154,7 @@ GraphImpl::disable(RunContext& context)
{
_process = false;
for (auto& o : _outputs) {
- o.clear_buffers();
+ o.clear_buffers(context);
}
}
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index 4f7c5d49..ec54e9bd 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -408,7 +408,7 @@ PortImpl::set_is_driver_port(BufferFactory& bufs)
}
void
-PortImpl::clear_buffers()
+PortImpl::clear_buffers(const RunContext& ctx)
{
switch (_type.id()) {
case PortType::CONTROL:
@@ -543,7 +543,7 @@ PortImpl::pre_process(RunContext& context)
{
if (!_connected_flag.test_and_set(std::memory_order_acquire)) {
connect_buffers();
- clear_buffers();
+ clear_buffers(context);
}
for (uint32_t v = 0; v < _poly; ++v)
diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp
index a691043d..5098fcbb 100644
--- a/src/server/PortImpl.hpp
+++ b/src/server/PortImpl.hpp
@@ -171,8 +171,8 @@ public:
virtual void pre_run(RunContext& context) {}
virtual void post_process(RunContext& context);
- /** Empty buffer contents completely (ie silence) */
- virtual void clear_buffers();
+ /** Clear/silence all buffers */
+ virtual void clear_buffers(const RunContext& context);
/** Claim and apply buffers in the real-time thread. */
virtual bool setup_buffers(RunContext& ctx, BufferFactory& bufs, uint32_t poly);