diff options
author | David Robillard <d@drobilla.net> | 2008-02-17 22:00:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-17 22:00:26 +0000 |
commit | bbb3abbe4b86a23ef884d38ca299aff13b8f9242 (patch) | |
tree | 71c193dc84cacc83daa1aa686a6e655d020f5f74 /src/JackDriver.hpp | |
parent | a26faf1aa846e9ab9c5ede7a424549e235cf6fb0 (diff) | |
download | patchage-bbb3abbe4b86a23ef884d38ca299aff13b8f9242.tar.gz patchage-bbb3abbe4b86a23ef884d38ca299aff13b8f9242.tar.bz2 patchage-bbb3abbe4b86a23ef884d38ca299aff13b8f9242.zip |
Remove Jack API dependence from PatchageEvent.
git-svn-id: http://svn.drobilla.net/lad/patchage@1151 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/JackDriver.hpp')
-rw-r--r-- | src/JackDriver.hpp | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/JackDriver.hpp b/src/JackDriver.hpp index b66e4ee..3569255 100644 --- a/src/JackDriver.hpp +++ b/src/JackDriver.hpp @@ -51,6 +51,18 @@ public: void refresh(); + bool port_names(const PatchageEvent::PortRef& ref, + std::string& module_name, + std::string& port_name); + + boost::shared_ptr<PatchagePort> find_port_view( + Patchage* patchage, + const PatchageEvent::PortRef& ref); + + boost::shared_ptr<PatchagePort> create_port_view( + Patchage* patchage, + const PatchageEvent::PortRef& ref); + bool connect(boost::shared_ptr<PatchagePort> src, boost::shared_ptr<PatchagePort> dst); @@ -81,18 +93,17 @@ public: inline float max_delay() { return jack_get_max_delayed_usecs(_client); } - boost::shared_ptr<PatchagePort> create_port(boost::shared_ptr<PatchageModule> parent, - jack_port_t* port); - private: + + boost::shared_ptr<PatchagePort> create_port( + boost::shared_ptr<PatchageModule> parent, + jack_port_t* port); static void error_cb(const char* msg); void destroy_all_ports(); void shutdown(); - void update_time(); - static void jack_port_registration_cb(jack_port_id_t port_id, int registered, void* me); static void jack_port_connect_cb(jack_port_id_t src, jack_port_id_t dst, int connect, void* me); static int jack_graph_order_cb(void* me); |