From b1198f0842e6e4d6b1c01f07d91b42ef4a212788 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Feb 2017 15:04:20 +0100 Subject: Use smart pointers to handle real-time memory disposal --- src/server/InputPort.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/InputPort.hpp') diff --git a/src/server/InputPort.hpp b/src/server/InputPort.hpp index 1fa0293d..73911789 100644 --- a/src/server/InputPort.hpp +++ b/src/server/InputPort.hpp @@ -67,7 +67,7 @@ public: /** Return the maximum polyphony of an output connected to this input. */ virtual uint32_t max_tail_poly(RunContext& context) const; - bool apply_poly(RunContext& context, Raul::Maid& maid, uint32_t poly); + bool apply_poly(RunContext& context, uint32_t poly); /** Add an arc. Realtime safe. * @@ -91,9 +91,9 @@ public: * pre-process thread to allocate buffers for application of a * connection/disconnection/etc in the next process cycle. */ - bool pre_get_buffers(BufferFactory& bufs, - Raul::Array* voices, - uint32_t poly) const; + bool pre_get_buffers(BufferFactory& bufs, + MPtr& voices, + uint32_t poly) const; bool setup_buffers(RunContext& ctx, BufferFactory& bufs, uint32_t poly); @@ -118,7 +118,7 @@ public: protected: bool get_buffers(BufferFactory& bufs, PortImpl::GetFn get, - Raul::Array* voices, + const MPtr& voices, uint32_t poly, size_t num_in_arcs) const; -- cgit v1.2.1