From 1d9bb9768f8a7d0c76fa33688051cd8f2715075d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 May 2012 06:09:44 +0000 Subject: Use compiler checkable ProcessContext parameter rather than runtime context assertions. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4374 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/Driver.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/server/Driver.hpp') diff --git a/src/server/Driver.hpp b/src/server/Driver.hpp index e12ae737..c96545b9 100644 --- a/src/server/Driver.hpp +++ b/src/server/Driver.hpp @@ -57,14 +57,16 @@ public: virtual EnginePort* create_port(DuplexPort* patch_port) = 0; /** Return the DriverPort for a particular path, iff one exists. */ - virtual EnginePort* engine_port(const Raul::Path& path) = 0; + virtual EnginePort* engine_port(ProcessContext& context, + const Raul::Path& path) = 0; /** Add a system visible port (e.g. a port on the root patch). */ - virtual void add_port(EnginePort* port) = 0; + virtual void add_port(ProcessContext& context, EnginePort* port) = 0; /** Remove a system visible port. */ - virtual Raul::Deletable* remove_port(const Raul::Path& path, - EnginePort** port=NULL) = 0; + virtual Raul::Deletable* remove_port(ProcessContext& context, + const Raul::Path& path, + EnginePort** port = NULL) = 0; /** Return the audio buffer size in frames */ virtual SampleCount block_length() const = 0; -- cgit v1.2.1