diff options
author | David Robillard <d@drobilla.net> | 2008-11-22 05:43:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-11-22 05:43:15 +0000 |
commit | 830a9b4ba0caa521289730eddd7bcb903b7662d3 (patch) | |
tree | 4b185b61322fb8b6de1358b8ed7ee263ebe5977a /src/engine | |
parent | 5e4a6540200af8a7c6b5fd1a0ae4ef8aef4fb8e8 (diff) | |
download | ingen-830a9b4ba0caa521289730eddd7bcb903b7662d3.tar.gz ingen-830a9b4ba0caa521289730eddd7bcb903b7662d3.tar.bz2 ingen-830a9b4ba0caa521289730eddd7bcb903b7662d3.zip |
Fix subpatch loading (fix ticket #271).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1760 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/JackAudioDriver.cpp | 5 | ||||
-rw-r--r-- | src/engine/JackAudioDriver.hpp | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/engine/JackAudioDriver.cpp b/src/engine/JackAudioDriver.cpp index 19a66281..864c843b 100644 --- a/src/engine/JackAudioDriver.cpp +++ b/src/engine/JackAudioDriver.cpp @@ -78,9 +78,8 @@ JackAudioPort::~JackAudioPort() void JackAudioPort::prepare_buffer(jack_nframes_t nframes) { - jack_sample_t* jack_buf = (jack_sample_t*)jack_port_get_buffer(_jack_port, nframes); - - AudioBuffer* patch_buf = (AudioBuffer*)_patch_port->buffer(0); + jack_sample_t* jack_buf = (jack_sample_t*)jack_port_get_buffer(_jack_port, nframes); + AudioBuffer* patch_buf = (AudioBuffer*)_patch_port->buffer(0); //cerr << "[JACK] " << _patch_port->path() << " buffer: " << patch_buf << endl; diff --git a/src/engine/JackAudioDriver.hpp b/src/engine/JackAudioDriver.hpp index dc3f15df..275aca79 100644 --- a/src/engine/JackAudioDriver.hpp +++ b/src/engine/JackAudioDriver.hpp @@ -104,9 +104,9 @@ public: bool is_realtime() const { return jack_is_realtime(_client); } - jack_client_t* jack_client() const { return _client; } - SampleCount buffer_size() const { return _buffer_size; } - SampleCount sample_rate() const { return _sample_rate; } + jack_client_t* jack_client() const { return _client; } + SampleCount buffer_size() const { return _buffer_size; } + SampleCount sample_rate() const { return _sample_rate; } bool is_activated() const { return _is_activated; } inline SampleCount frame_time() const { return jack_frame_time(_client); } |