summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Configuration.cpp1
-rw-r--r--src/server/PortAudioDriver.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp
index 603c1c9d..cd85bf3e 100644
--- a/src/Configuration.cpp
+++ b/src/Configuration.cpp
@@ -49,6 +49,7 @@ Configuration::Configuration(Forge& forge)
, _max_name_length(0)
{
add("atomicBundles", "atomic-bundles", 'a', "Execute bundles atomically", GLOBAL, forge.Bool, forge.make(false));
+ add("bufferSize", "buffer-size", 'b', "Buffer size in samples", GLOBAL, forge.Int, forge.make(1024));
add("clientPort", "client-port", 'C', "Client port", GLOBAL, forge.Int, Atom());
add("connect", "connect", 'c', "Connect to engine URI", SESSION, forge.String, forge.alloc("unix:///tmp/ingen.sock"));
add("engine", "engine", 'e', "Run (JACK) engine", SESSION, forge.Bool, forge.make(false));
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)