diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/GraphImpl.cpp | 2 | ||||
-rw-r--r-- | src/server/PortImpl.cpp | 4 | ||||
-rw-r--r-- | src/server/PortImpl.hpp | 4 |
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); |