summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author- <nemo@alice.(none)>2013-05-10 11:21:54 +0200
committer- <nemo@alice.(none)>2013-05-10 11:21:54 +0200
commit45549563e1c9b6fb2f0a919eece37e4cf98a0d7e (patch)
tree4f40db7a22a4156f82bbbe0fc16f59ed42ccc937
parentdd64f50a05b2834014582134e13daf8575c70757 (diff)
Outcommented lazy load for real
-rw-r--r--src/drumgizmo.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index df2fd31..88436ec 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -332,8 +332,9 @@ bool DrumGizmo::run(size_t pos, sample_t *samples, size_t nsamples)
Channel &ch = *j;
AudioFile *af = s->getAudioFile(&ch);
if(af) {
- printf("Requesting preparing of audio file\n");
- loader.prepare(af);
+// LAZYLOAD:
+// printf("Requesting preparing of audio file\n");
+// loader.prepare(af);
}
if(af == NULL || !af->isValid()) {
//printf("Missing AudioFile.\n");
@@ -454,7 +455,8 @@ void DrumGizmo::getSamples(int ch, int pos, sample_t *s, size_t sz)
if(evt->t >= af->size) {
removeevent = true;
- loader.reset(af);
+// LAZYLOAD:
+// loader.reset(af);
}
}
break;