shithub: aubio

Download patch

ref: 0ff1b403a729a53f78f277940d4a2e715fe3c841
parent: 6388c37196611f47ebddfc51577f24d2f10ff8cc
author: Paul Brossier <piem@piem.org>
date: Wed Sep 28 11:09:40 EDT 2016

src/onset/onset.c: fix error message

--- a/src/onset/onset.c
+++ b/src/onset/onset.c
@@ -190,7 +190,7 @@
     AUBIO_ERR("onset: got buffer_size %d, but can not be < 2\n", buf_size);
     goto beach;
   } else if (buf_size < hop_size) {
-    AUBIO_ERR("onset: hop size (%d) is larger than win size (%d)\n", buf_size, hop_size);
+    AUBIO_ERR("onset: hop size (%d) is larger than win size (%d)\n", hop_size, buf_size);
     goto beach;
   } else if ((sint_t)samplerate < 1) {
     AUBIO_ERR("onset: samplerate (%d) can not be < 1\n", samplerate);