summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-01-28 20:00:55 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-28 20:00:55 +0100
commit21dc9f4580d04cd642c22af059985430af5581d3 (patch)
treeb896390cda99bf2a1a3c7f8f58990cdf8e70eaed
parent9e5d4a70ad5a7ce73e02e6eb98735755ffdd5694 (diff)
Implicitly set framesize when running in local mode.
-rw-r--r--src/drumgizmo.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index 0edc599..a777125 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -220,9 +220,11 @@ void DrumGizmo::setFreeWheel(bool freewheel)
void DrumGizmo::run(int endpos)
{
size_t pos = 0;
- size_t nsamples = 1024;//oe->getBufferSize();
+ size_t nsamples = oe->getBufferSize();
sample_t *samples = (sample_t *)malloc(nsamples * sizeof(sample_t));
+ setFrameSize(oe->getBufferSize());
+
ie->start();
oe->start();