From 91cdc941af88e8ba6e19673eb17825233db2218c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 9 Jun 2011 00:23:26 +0000 Subject: Fix support for multiple instances of alsa clients with the same name (never consider client name an ID). Remove Alsa specific crap from PatchagePort. Sane implementation of AlsaDriver::refresh. Fix refreshing. Remove useless Jack graph order callback. Fix double add/remove of ports to modules. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3374 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageModule.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/PatchageModule.hpp') diff --git a/src/PatchageModule.hpp b/src/PatchageModule.hpp index 2a58182..d9ba9dd 100644 --- a/src/PatchageModule.hpp +++ b/src/PatchageModule.hpp @@ -21,6 +21,7 @@ #include #include "flowcanvas/Module.hpp" +#include "flowcanvas/Port.hpp" #include "StateManager.hpp" @@ -32,9 +33,6 @@ public: PatchageModule(Patchage* app, const std::string& name, ModuleType type, double x=0, double y=0); ~PatchageModule(); - void add_port(FlowCanvas::Port* port); - void remove_port(FlowCanvas::Port* port); - void split(); void join(); @@ -49,6 +47,9 @@ public: ModuleType type() const { return _type; } protected: + void add_port(FlowCanvas::Port* port); + void remove_port(FlowCanvas::Port* port); + Patchage* _app; ModuleType _type; }; -- cgit v1.2.1