diff options
author | Christian Glöckner <cgloeckner@freenet.de> | 2016-01-25 12:32:09 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2016-02-09 09:03:16 +0100 |
commit | 41b6ef4642b25c22e47e5f89f113b502d3a4321c (patch) | |
tree | 2aac4d7d2fe822506d7ce902f81d3c7dc52e0171 /drumgizmo/output/jackaudio.h | |
parent | 7236fee052f52667f116ed83cacb21ed587d0d65 (diff) |
added JackMidiInputEngine + additional minor changes
Diffstat (limited to 'drumgizmo/output/jackaudio.h')
-rw-r--r-- | drumgizmo/output/jackaudio.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drumgizmo/output/jackaudio.h b/drumgizmo/output/jackaudio.h index 13ed75f..12539c5 100644 --- a/drumgizmo/output/jackaudio.h +++ b/drumgizmo/output/jackaudio.h @@ -31,12 +31,12 @@ #include "audiooutputengine.h" #include "../jackclient.h" -class JackaudioOutputEngine +class JackAudioOutputEngine : public AudioOutputEngine , public JackProcess { public: - JackaudioOutputEngine(JackClient& client); - ~JackaudioOutputEngine(); + JackAudioOutputEngine(JackClient& client); + ~JackAudioOutputEngine(); // based on AudioOutputEngine bool init(Channels chan) override; @@ -53,7 +53,14 @@ class JackaudioOutputEngine void process(jack_nframes_t num_frames) override; private: + struct Channel { + JackPort port; + std::vector<sample_t> samples; + + Channel(JackClient& client, std::string const & name, std::size_t buffer_size); + }; + JackClient& client; - std::vector<JackChannel> channels; + std::vector<Channel> channels; Semaphore sema; }; |