Commit d9cd9062 authored by Stephane Letz's avatar Stephane Letz
Browse files

Correct JackDummyDriver driver_initialize.

parent 2ebe9338
...@@ -100,11 +100,12 @@ extern "C" ...@@ -100,11 +100,12 @@ extern "C"
} }
if (wait_time > 0) { if (wait_time > 0) {
buffer_size = lroundf((wait_time * sample_rate) / 1000000.0f); buffer_size = lroundf((float(wait_time) * float(sample_rate)) / 1000000.0f);
if (buffer_size > BUFFER_SIZE_MAX) { }
buffer_size = BUFFER_SIZE_MAX;
jack_error("Buffer size set to %d", BUFFER_SIZE_MAX); if (buffer_size > BUFFER_SIZE_MAX) {
} buffer_size = BUFFER_SIZE_MAX;
jack_error("Buffer size set to %d", BUFFER_SIZE_MAX);
} }
Jack::JackDriverClientInterface* driver = new Jack::JackThreadedDriver(new Jack::JackDummyDriver("system", "dummy_pcm", engine, table)); Jack::JackDriverClientInterface* driver = new Jack::JackThreadedDriver(new Jack::JackDummyDriver("system", "dummy_pcm", engine, table));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment