summaryrefslogtreecommitdiffstats
path: root/src/engine/BufferFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/BufferFactory.cpp')
-rw-r--r--src/engine/BufferFactory.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/engine/BufferFactory.cpp b/src/engine/BufferFactory.cpp
index 0d2fc76e..c6c9422a 100644
--- a/src/engine/BufferFactory.cpp
+++ b/src/engine/BufferFactory.cpp
@@ -40,7 +40,6 @@ BufferFactory::BufferFactory(Engine& engine, SharedPtr<Shared::LV2URIMap> a_uris
assert(_uris);
}
-
BufferFactory::~BufferFactory()
{
free_list(_free_audio.get());
@@ -49,7 +48,6 @@ BufferFactory::~BufferFactory()
free_list(_free_object.get());
}
-
void
BufferFactory::free_list(Buffer* head)
{
@@ -59,21 +57,18 @@ BufferFactory::free_list(Buffer* head)
free_list(next);
}
-
void
BufferFactory::set_block_length(SampleCount block_length)
{
_silent_buffer = create(PortType::AUDIO, audio_buffer_size(block_length));
}
-
size_t
BufferFactory::audio_buffer_size(SampleCount nframes)
{
return sizeof(LV2_Atom) + sizeof(LV2_Atom_Vector) + (nframes * sizeof(float));
}
-
size_t
BufferFactory::default_buffer_size(PortType type)
{
@@ -89,7 +84,6 @@ BufferFactory::default_buffer_size(PortType type)
}
}
-
BufferFactory::Ref
BufferFactory::get(Shared::PortType type, size_t size, bool force_create)
{
@@ -120,7 +114,6 @@ BufferFactory::get(Shared::PortType type, size_t size, bool force_create)
return Ref(try_head);
}
-
BufferFactory::Ref
BufferFactory::create(Shared::PortType type, size_t size)
{
@@ -153,7 +146,6 @@ BufferFactory::create(Shared::PortType type, size_t size)
return Ref(buffer);
}
-
void
BufferFactory::recycle(Buffer* buf)
{
@@ -165,5 +157,4 @@ BufferFactory::recycle(Buffer* buf)
} while (!head_ptr.compare_and_exchange(try_head, buf));
}
-
} // namespace Ingen