src/synth/sampler.c: improve comments
authorPaul Brossier <piem@piem.org>
Mon, 28 Nov 2016 13:55:48 +0000 (14:55 +0100)
committerPaul Brossier <piem@piem.org>
Mon, 28 Nov 2016 13:55:48 +0000 (14:55 +0100)
src/synth/sampler.c

index 333a6f6..ea6b063 100644 (file)
@@ -469,7 +469,8 @@ aubio_sampler_reading_from_source_ring_pull(aubio_sampler_t *s, fvec_t *output,
     *read = s->blocksize;
     if (s->eof_remaining > 0) {
       if (s->eof_remaining <= s->blocksize) {
-        s->eof = 1;
+        //AUBIO_WRN("sampler: signaling eof\n");
+        s->eof = 1; // signal eof
         s->eof_remaining = 0;
       } else if (s->eof_remaining <= s->source_blocksize) {
         s->eof_remaining -= s->blocksize;