diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/drumgizmo.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc index 1fa41a9..71346d4 100644 --- a/src/drumgizmo.cc +++ b/src/drumgizmo.cc @@ -281,7 +281,10 @@ void DrumGizmo::getSamples(int ch, int pos, sample_t *s, size_t sz) EventSample *evt = (EventSample *)event; AudioFile *af = evt->file; //af->load(); // Make sure it is loaded. - if(!af->isLoaded()) continue; + if(!af->isLoaded()) { + removeevent = true; + break; + } size_t n = 0; if(evt->offset > (size_t)pos) n = evt->offset - pos; |