From 52011c3b045d9f49a4bc25c9f545bb35e5c2a0a9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 May 2012 07:04:11 +0000 Subject: More work towards checking contexts via parameter rather than thread magic. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4376 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/BufferFactory.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/server/BufferFactory.hpp') diff --git a/src/server/BufferFactory.hpp b/src/server/BufferFactory.hpp index 75cb0b63..ee6ca5d9 100644 --- a/src/server/BufferFactory.hpp +++ b/src/server/BufferFactory.hpp @@ -40,6 +40,7 @@ namespace Shared { class URIs; } namespace Server { +class Context; class Engine; class BufferFactory { @@ -50,7 +51,10 @@ public: static uint32_t audio_buffer_size(SampleCount nframes); uint32_t default_buffer_size(LV2_URID type); - BufferRef get(LV2_URID type, uint32_t capacity, bool force_create=false); + BufferRef get(Context& context, + LV2_URID type, + uint32_t capacity, + bool force_create = false); BufferRef silent_buffer(); -- cgit v1.2.1