summaryrefslogtreecommitdiffstats
path: root/src/server/BufferFactory.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-23 02:32:33 +0000
committerDavid Robillard <d@drobilla.net>2012-04-23 02:32:33 +0000
commit8d1e92ab0655d4ede8ea17358d678b3a5aabc1bc (patch)
tree2dff94cd90ca026f2f4e0e490da03762cc924680 /src/server/BufferFactory.hpp
parent8601ab0fe6c5782cc38de48576eb2f7c4fb2ccef (diff)
downloadingen-8d1e92ab0655d4ede8ea17358d678b3a5aabc1bc.tar.gz
ingen-8d1e92ab0655d4ede8ea17358d678b3a5aabc1bc.tar.bz2
ingen-8d1e92ab0655d4ede8ea17358d678b3a5aabc1bc.zip
Localise buffer reference stuff.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4252 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/BufferFactory.hpp')
-rw-r--r--src/server/BufferFactory.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/server/BufferFactory.hpp b/src/server/BufferFactory.hpp
index e04cf1e9..08f7680b 100644
--- a/src/server/BufferFactory.hpp
+++ b/src/server/BufferFactory.hpp
@@ -32,6 +32,7 @@
#include "ingen/shared/URIs.hpp"
#include "Buffer.hpp"
+#include "BufferRef.hpp"
#include "PortType.hpp"
#include "types.hpp"
@@ -50,14 +51,12 @@ public:
~BufferFactory();
- typedef boost::intrusive_ptr<Buffer> Ref;
-
static uint32_t audio_buffer_size(SampleCount nframes);
uint32_t default_buffer_size(LV2_URID type);
- Ref get(LV2_URID type, uint32_t capacity, bool force_create=false);
+ BufferRef get(LV2_URID type, uint32_t capacity, bool force_create=false);
- Ref silent_buffer();
+ BufferRef silent_buffer();
void set_block_length(SampleCount block_length);
@@ -69,7 +68,7 @@ private:
friend class Buffer;
void recycle(Buffer* buf);
- Ref create(LV2_URID type, uint32_t capacity=0);
+ BufferRef create(LV2_URID type, uint32_t capacity=0);
inline Raul::AtomicPtr<Buffer>& free_list(LV2_URID type) {
if (type == _uris->atom_Float) {
@@ -91,7 +90,7 @@ private:
Engine& _engine;
SharedPtr<Ingen::Shared::URIs> _uris;
- Ref _silent_buffer;
+ BufferRef _silent_buffer;
};
} // namespace Server