summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-27 16:15:21 +0000
committerDavid Robillard <d@drobilla.net>2013-01-27 16:15:21 +0000
commitd349a2eb5934eb7505ae167f68f7772d55623628 (patch)
tree3cb27099da23a51a08d7ca6a5e8c08179d85c1b7 /src
parent4c58728d246f35a01bb166d8d7821f0af032fd0f (diff)
downloadingen-d349a2eb5934eb7505ae167f68f7772d55623628.tar.gz
ingen-d349a2eb5934eb7505ae167f68f7772d55623628.tar.bz2
ingen-d349a2eb5934eb7505ae167f68f7772d55623628.zip
Rename BufferFactory::get() to BufferFactory::get_buffer() for grepability.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5013 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/server/BufferFactory.cpp8
-rw-r--r--src/server/BufferFactory.hpp8
-rw-r--r--src/server/InputPort.cpp2
-rw-r--r--src/server/OutputPort.cpp2
4 files changed, 10 insertions, 10 deletions
diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp
index b15e0bb7..6390a36b 100644
--- a/src/server/BufferFactory.cpp
+++ b/src/server/BufferFactory.cpp
@@ -96,10 +96,10 @@ BufferFactory::default_size(LV2_URID type) const
}
BufferRef
-BufferFactory::get(LV2_URID type,
- uint32_t capacity,
- bool real_time,
- bool force_create)
+BufferFactory::get_buffer(LV2_URID type,
+ uint32_t capacity,
+ bool real_time,
+ bool force_create)
{
std::atomic<Buffer*>& head_ptr = free_list(type);
Buffer* try_head = NULL;
diff --git a/src/server/BufferFactory.hpp b/src/server/BufferFactory.hpp
index 8c0f5db9..fc9c5515 100644
--- a/src/server/BufferFactory.hpp
+++ b/src/server/BufferFactory.hpp
@@ -49,10 +49,10 @@ public:
static uint32_t audio_buffer_size(SampleCount nframes);
uint32_t default_size(LV2_URID type) const;
- BufferRef get(LV2_URID type,
- uint32_t capacity,
- bool real_time,
- bool force_create = false);
+ BufferRef get_buffer(LV2_URID type,
+ uint32_t capacity,
+ bool real_time,
+ bool force_create = false);
BufferRef silent_buffer();
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index 94e451c0..9002dbab 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -106,7 +106,7 @@ InputPort::get_buffers(BufferFactory& bufs,
// Otherwise, allocate local buffers
for (uint32_t v = 0; v < poly; ++v) {
buffers->at(v).reset();
- buffers->at(v) = bufs.get(buffer_type(), _buffer_size, real_time);
+ buffers->at(v) = bufs.get_buffer(buffer_type(), _buffer_size, real_time);
buffers->at(v)->clear();
}
return true;
diff --git a/src/server/OutputPort.cpp b/src/server/OutputPort.cpp
index 94e166bd..6b7329e5 100644
--- a/src/server/OutputPort.cpp
+++ b/src/server/OutputPort.cpp
@@ -54,7 +54,7 @@ OutputPort::get_buffers(BufferFactory& bufs,
bool real_time) const
{
for (uint32_t v = 0; v < poly; ++v)
- buffers->at(v) = bufs.get(buffer_type(), _buffer_size, real_time);
+ buffers->at(v) = bufs.get_buffer(buffer_type(), _buffer_size, real_time);
return true;
}