summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();