summaryrefslogtreecommitdiffstats
path: root/src/engine/BufferFactory.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-16 19:02:36 +0000
committerDavid Robillard <d@drobilla.net>2011-04-16 19:02:36 +0000
commit9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2 (patch)
tree089c1366a567dfbf88c0473288236b276ef24bf6 /src/engine/BufferFactory.cpp
parent987710474b824cb92d83ff6fa7a090f50e10756f (diff)
downloadingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.tar.gz
ingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.tar.bz2
ingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.zip
Squeeze blank lines and delete trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3152 a436a847-0d15-0410-975c-d299462d15a1
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