summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-04-12 20:19:44 +0200
committerDavid Robillard <d@drobilla.net>2017-04-12 20:22:41 +0200
commitc63c2359c943f6e7f061de22a7f513b0b925cec5 (patch)
tree238d51e6e6fa029f04df6710c3063f5a4b4c6ccf /src/server
parentb718c77fe338c18b61280aefcf8d42c01a6299fd (diff)
downloadingen-c63c2359c943f6e7f061de22a7f513b0b925cec5.tar.gz
ingen-c63c2359c943f6e7f061de22a7f513b0b925cec5.tar.bz2
ingen-c63c2359c943f6e7f061de22a7f513b0b925cec5.zip
Allow buffer size to be specified on the command line
Applies to PortAudio driver only
Diffstat (limited to 'src/server')
-rw-r--r--src/server/PortAudioDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/PortAudioDriver.cpp b/src/server/PortAudioDriver.cpp
index 5ceb0aa8..1c0a1b0b 100644
--- a/src/server/PortAudioDriver.cpp
+++ b/src/server/PortAudioDriver.cpp
@@ -56,7 +56,7 @@ PortAudioDriver::PortAudioDriver(Engine& engine)
, _sem(0)
, _stream(nullptr)
, _seq_size(4096)
- , _block_length(1024)
+ , _block_length(engine.world()->conf().option("buffer-size").get<int32_t>())
, _sample_rate(48000)
, _n_inputs(0)
, _n_outputs(0)