diff options
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; }; |