summaryrefslogtreecommitdiffstats
path: root/src/server/InputPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-12 15:04:20 +0100
committerDavid Robillard <d@drobilla.net>2017-02-12 15:31:47 +0100
commitb1198f0842e6e4d6b1c01f07d91b42ef4a212788 (patch)
tree93fdf4da89a6f5f634707fb8c989e0d9ee1a3c65 /src/server/InputPort.cpp
parent81d45973412c675e3c0b4a10b64d811a219feeae (diff)
downloadingen-b1198f0842e6e4d6b1c01f07d91b42ef4a212788.tar.gz
ingen-b1198f0842e6e4d6b1c01f07d91b42ef4a212788.tar.bz2
ingen-b1198f0842e6e4d6b1c01f07d91b42ef4a212788.zip
Use smart pointers to handle real-time memory disposal
Diffstat (limited to 'src/server/InputPort.cpp')
-rw-r--r--src/server/InputPort.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index 1b4c4501..b0e2ee61 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -55,9 +55,9 @@ InputPort::InputPort(BufferFactory& bufs,
}
bool
-InputPort::apply_poly(RunContext& context, Raul::Maid& maid, uint32_t poly)
+InputPort::apply_poly(RunContext& context, uint32_t poly)
{
- bool ret = PortImpl::apply_poly(context, maid, poly);
+ bool ret = PortImpl::apply_poly(context, poly);
if (!ret)
poly = 1;
@@ -69,7 +69,7 @@ InputPort::apply_poly(RunContext& context, Raul::Maid& maid, uint32_t poly)
bool
InputPort::get_buffers(BufferFactory& bufs,
PortImpl::GetFn get,
- Raul::Array<Voice>* voices,
+ const MPtr<Voices>& voices,
uint32_t poly,
size_t num_in_arcs) const
{
@@ -99,9 +99,9 @@ InputPort::get_buffers(BufferFactory& bufs,
}
bool
-InputPort::pre_get_buffers(BufferFactory& bufs,
- Raul::Array<Voice>* voices,
- uint32_t poly) const
+InputPort::pre_get_buffers(BufferFactory& bufs,
+ MPtr<Voices>& voices,
+ uint32_t poly) const
{
return get_buffers(bufs, &BufferFactory::get_buffer, voices, poly, _num_arcs);
}