diff options
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r-- | src/drumgizmo.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc index d6dc028..14d47a1 100644 --- a/src/drumgizmo.cc +++ b/src/drumgizmo.cc @@ -122,32 +122,6 @@ void DrumGizmo::setRandomSeed(unsigned int seed) rand.setSeed(seed); } -void DrumGizmo::run(int endpos) -{ - size_t pos = 0; - size_t nsamples = oe.getBufferSize(); - sample_t *samples = (sample_t *)malloc(nsamples * sizeof(sample_t)); - - setFrameSize(oe.getBufferSize()); - - ie.start(); - oe.start(); - - while(run(pos, samples, nsamples) == true) - { - pos += nsamples; - if((endpos != -1) && (pos >= (size_t)endpos)) - { - break; - } - } - - ie.stop(); - oe.stop(); - - free(samples); -} - bool DrumGizmo::run(size_t pos, sample_t *samples, size_t nsamples) { setFrameSize(nsamples); |