summaryrefslogtreecommitdiff
path: root/drumgizmo/output/jackaudio.cc
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-01-25 13:00:34 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-02-09 09:03:16 +0100
commitc970d83d7394e73f4bdff9c69a186ec91ac5f9de (patch)
tree7ee3c52be2cce744b30b40c5c7d0ea86372f09dd /drumgizmo/output/jackaudio.cc
parent29e6ee2ea1e8da158509fc1644894ca5de013530 (diff)
Fixed API-problems
Diffstat (limited to 'drumgizmo/output/jackaudio.cc')
-rw-r--r--drumgizmo/output/jackaudio.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/drumgizmo/output/jackaudio.cc b/drumgizmo/output/jackaudio.cc
index 634b7d1..240037a 100644
--- a/drumgizmo/output/jackaudio.cc
+++ b/drumgizmo/output/jackaudio.cc
@@ -51,7 +51,7 @@ bool JackAudioOutputEngine::init(Channels data) {
// initialize new channel
channels.emplace_back(client, name, buffer_size);
- if (channels.back().port == nullptr) {
+ if (channels.back().port.port == nullptr) {
std::cerr << "[JackAudioOutputEngine] Cannot create jack "
<< "port for channel #" << i << "\n";
return false;
@@ -90,7 +90,7 @@ void JackAudioOutputEngine::process(jack_nframes_t num_frames) {
for (auto& channel: channels) {
auto ptr = static_cast<jack_default_audio_sample_t*>(
- jack_port_get_buffer(channel.port, num_frames));
+ jack_port_get_buffer(channel.port.port, num_frames));
for (auto i = 0u; i < num_frames; ++i) {
ptr[i] = channel.samples[i];
}
@@ -107,7 +107,7 @@ size_t JackAudioOutputEngine::samplerate() {
}
JackAudioOutputEngine::Channel::Channel(JackClient& client, std::string const & name, std::size_t buffer_size)
- : port{client, name, JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0}
+ : port{client, name, JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput}
, samples{} {
samples.resize(buffer_size);
}