From 7be6d5d05756a7dea20c494d56f364b4dc064c88 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 May 2012 03:01:26 +0000 Subject: Clean up and better document World interface. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4344 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/BufferFactory.hpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src/server/BufferFactory.hpp') 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 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& 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 _free_control; Raul::AtomicPtr _free_object; - Glib::Mutex _mutex; - Engine& _engine; - SharedPtr _uris; + Glib::Mutex _mutex; + Engine& _engine; + Shared::URIs& _uris; BufferRef _silent_buffer; }; -- cgit v1.2.1