summaryrefslogtreecommitdiffstats
path: root/src/server/BufferFactory.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-11 03:01:26 +0000
committerDavid Robillard <d@drobilla.net>2012-05-11 03:01:26 +0000
commit7be6d5d05756a7dea20c494d56f364b4dc064c88 (patch)
tree4e1bd5d2c9a1d3b23a88b3a4960349c389d1f89a /src/server/BufferFactory.hpp
parente77d4fcf31bfdad0b34e184e4743b4750848472c (diff)
downloadingen-7be6d5d05756a7dea20c494d56f364b4dc064c88.tar.gz
ingen-7be6d5d05756a7dea20c494d56f364b4dc064c88.tar.bz2
ingen-7be6d5d05756a7dea20c494d56f364b4dc064c88.zip
Clean up and better document World interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4344 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/BufferFactory.hpp')
-rw-r--r--src/server/BufferFactory.hpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/server/BufferFactory.hpp b/src/server/BufferFactory.hpp
index 1ec11ca1..04b9bf9d 100644
--- a/src/server/BufferFactory.hpp
+++ b/src/server/BufferFactory.hpp
@@ -46,9 +46,7 @@ class Engine;
class BufferFactory {
public:
- BufferFactory(Engine& engine,
- SharedPtr<Ingen::Shared::URIs> uris);
-
+ BufferFactory(Engine& engine, Shared::URIs& uris);
~BufferFactory();
static uint32_t audio_buffer_size(SampleCount nframes);
@@ -60,9 +58,9 @@ public:
void set_block_length(SampleCount block_length);
- Ingen::Forge& forge();
- Ingen::Shared::URIs& uris() { return *_uris.get(); }
- Engine& engine() { return _engine; }
+ Forge& forge();
+ Shared::URIs& uris() { return _uris; }
+ Engine& engine() { return _engine; }
private:
friend class Buffer;
@@ -71,9 +69,9 @@ private:
BufferRef create(LV2_URID type, uint32_t capacity=0);
inline Raul::AtomicPtr<Buffer>& free_list(LV2_URID type) {
- if (type == _uris->atom_Float) {
+ if (type == _uris.atom_Float) {
return _free_control;
- } else if (type == _uris->atom_Sound) {
+ } else if (type == _uris.atom_Sound) {
return _free_audio;
} else {
return _free_object;
@@ -86,9 +84,9 @@ private:
Raul::AtomicPtr<Buffer> _free_control;
Raul::AtomicPtr<Buffer> _free_object;
- Glib::Mutex _mutex;
- Engine& _engine;
- SharedPtr<Ingen::Shared::URIs> _uris;
+ Glib::Mutex _mutex;
+ Engine& _engine;
+ Shared::URIs& _uris;
BufferRef _silent_buffer;
};