diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-28 20:00:55 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-28 20:00:55 +0100 |
commit | 21dc9f4580d04cd642c22af059985430af5581d3 (patch) | |
tree | b896390cda99bf2a1a3c7f8f58990cdf8e70eaed /src | |
parent | 9e5d4a70ad5a7ce73e02e6eb98735755ffdd5694 (diff) |
Implicitly set framesize when running in local mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/drumgizmo.cc | 4 |
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(); |