summaryrefslogtreecommitdiff
path: root/src
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
parent633bac9e82aef192a803666aaf3d3dcff920ac0c (diff)
Remove the run(int endpos) method from drumgizmo.
Insert the code directly instead.
Diffstat (limited to 'src')
-rw-r--r--src/drumgizmo.cc26
-rw-r--r--src/drumgizmo.h1
2 files changed, 0 insertions, 27 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);
diff --git a/src/drumgizmo.h b/src/drumgizmo.h
index 63c0fb6..8ad77d3 100644
--- a/src/drumgizmo.h
+++ b/src/drumgizmo.h
@@ -55,7 +55,6 @@ public:
bool init();
- void run(int endpos);
bool run(size_t pos, sample_t *samples, size_t nsamples);
void stop();