diff options
author | David Robillard <d@drobilla.net> | 2007-01-07 06:11:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-07 06:11:57 +0000 |
commit | 99ab1c257b7456c16f82119e1faea62c61eea660 (patch) | |
tree | 8c31966bbf0e8919380cb4ece65351105b2bb597 /src/libs/engine/JackAudioDriver.h | |
parent | 81e148286602439b71950d5c69de5ce06f513592 (diff) | |
download | ingen-99ab1c257b7456c16f82119e1faea62c61eea660.tar.gz ingen-99ab1c257b7456c16f82119e1faea62c61eea660.tar.bz2 ingen-99ab1c257b7456c16f82119e1faea62c61eea660.zip |
Top level port destruction (Jack port removal).
git-svn-id: http://svn.drobilla.net/lad/ingen@238 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/JackAudioDriver.h')
-rw-r--r-- | src/libs/engine/JackAudioDriver.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libs/engine/JackAudioDriver.h b/src/libs/engine/JackAudioDriver.h index 53f48035..38c908a6 100644 --- a/src/libs/engine/JackAudioDriver.h +++ b/src/libs/engine/JackAudioDriver.h @@ -20,6 +20,7 @@ #include <jack/jack.h> #include <jack/transport.h> #include "raul/Thread.h" +#include "raul/Path.h" #include "List.h" #include "AudioDriver.h" #include "Buffer.h" @@ -44,8 +45,6 @@ public: JackAudioPort(JackAudioDriver* driver, DuplexPort<Sample>* patch_port); ~JackAudioPort(); - void add_to_driver(); - void remove_from_driver(); void set_name(const std::string& name) { jack_port_set_name(_jack_port, name.c_str()); }; void prepare_buffer(jack_nframes_t nframes); @@ -84,8 +83,12 @@ public: void enable(); void disable(); + DriverPort* port(const Path& path); DriverPort* create_port(DuplexPort<Sample>* patch_port); + void add_port(DriverPort* port); + DriverPort* remove_port(const Path& path); + Patch* root_patch() { return _root_patch; } void set_root_patch(Patch* patch) { _root_patch = patch; } @@ -105,10 +108,6 @@ public: private: friend class JackAudioPort; - - // Functions for JackAudioPort - void add_port(JackAudioPort* port); - JackAudioPort* remove_port(JackAudioPort* port); // These are the static versions of the callbacks, they call // the non-static ones below |