summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-07-13 17:26:10 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-07-13 17:28:11 +0200
commitd71485534d3a683cae4993815f59ff68263a6751 (patch)
treecf1b487fc405cde4e2c1c391d6edc57fa529fea7 /src/drumgizmo.cc
parent633bac9e82aef192a803666aaf3d3dcff920ac0c (diff)
Remove the run(int endpos) method from drumgizmo.
Insert the code directly instead.
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r--src/drumgizmo.cc26
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);