From 45549563e1c9b6fb2f0a919eece37e4cf98a0d7e Mon Sep 17 00:00:00 2001 From: - Date: Fri, 10 May 2013 11:21:54 +0200 Subject: Outcommented lazy load for real --- src/drumgizmo.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3