shithub: aubio

Download patch

ref: f6c4c1c461a3d8c8dc8f00addbb0e685f53564d2
parent: 732cf3a09af1eda3ec2bef67d9eb71d2ad08b34e
author: Paul Brossier <piem@piem.org>
date: Fri Sep 16 21:44:22 EDT 2016

src/effects/pitchshift.c: add some comments

--- a/src/effects/pitchshift.c
+++ b/src/effects/pitchshift.c
@@ -144,6 +144,9 @@
 }
 
 #else
+
+// TODO fallback pitch shifting implementation
+
 struct _aubio_pitchshift_t
 {
   void *dummy;
@@ -153,7 +156,8 @@
     fvec_t * out UNUSED) {
 }
 
-void del_aubio_pitchshift (aubio_pitchshift_t * o UNUSED) {}
+void del_aubio_pitchshift (aubio_pitchshift_t * o UNUSED) {
+}
 
 aubio_pitchshift_t *new_aubio_pitchshift (const char_t * method UNUSED,
     smpl_t pitchscale UNUSED, uint_t hop_size UNUSED, uint_t samplerate UNUSED)
@@ -161,18 +165,25 @@
   AUBIO_ERR ("aubio was not compiled with rubberband\n");
   return NULL;
 }
+
 uint_t aubio_pitchshift_set_pitchscale (aubio_pitchshift_t * o UNUSED, smpl_t pitchscale UNUSED)
 {
   return AUBIO_FAIL;
 }
+
 smpl_t aubio_pitchshift_get_pitchscale (aubio_pitchshift_t * o UNUSED)
 {
   return 1.;
 }
+
 uint_t aubio_pitchshift_set_transpose (aubio_pitchshift_t * o UNUSED, smpl_t transpose UNUSED) {
   return AUBIO_FAIL;
 }
+
 smpl_t aubio_pitchshift_get_transpose (aubio_pitchshift_t * o UNUSED) {
   return 0.;
 }
+
+// end of dummy implementation
+
 #endif /* HAVE_RUBBERBAND */
--