[25a19c2] | 1 | /* |
---|
| 2 | Copyright (C) 2016 Paul Brossier <piem@aubio.org> |
---|
| 3 | |
---|
| 4 | This file is part of aubio. |
---|
| 5 | |
---|
| 6 | aubio is free software: you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation, either version 3 of the License, or |
---|
| 9 | (at your option) any later version. |
---|
| 10 | |
---|
| 11 | aubio is distributed in the hope that it will be useful, |
---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | GNU General Public License for more details. |
---|
| 15 | |
---|
| 16 | You should have received a copy of the GNU General Public License |
---|
| 17 | along with aubio. If not, see <http://www.gnu.org/licenses/>. |
---|
| 18 | |
---|
| 19 | */ |
---|
| 20 | |
---|
[78a564b] | 21 | #include "aubio_priv.h" |
---|
[25a19c2] | 22 | |
---|
| 23 | #ifndef HAVE_RUBBERBAND |
---|
| 24 | |
---|
| 25 | #include "fvec.h" |
---|
| 26 | #include "effects/pitchshift.h" |
---|
| 27 | |
---|
| 28 | // TODO fallback pitch shifting implementation |
---|
| 29 | |
---|
| 30 | struct _aubio_pitchshift_t |
---|
| 31 | { |
---|
| 32 | void *dummy; |
---|
| 33 | }; |
---|
| 34 | |
---|
| 35 | void aubio_pitchshift_do (aubio_pitchshift_t * o UNUSED, const fvec_t * in UNUSED, |
---|
| 36 | fvec_t * out UNUSED) { |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | void del_aubio_pitchshift (aubio_pitchshift_t * o UNUSED) { |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | aubio_pitchshift_t *new_aubio_pitchshift (const char_t * method UNUSED, |
---|
| 43 | smpl_t pitchscale UNUSED, uint_t hop_size UNUSED, uint_t samplerate UNUSED) |
---|
| 44 | { |
---|
| 45 | AUBIO_ERR ("aubio was not compiled with rubberband\n"); |
---|
| 46 | return NULL; |
---|
| 47 | } |
---|
| 48 | |
---|
| 49 | uint_t aubio_pitchshift_set_pitchscale (aubio_pitchshift_t * o UNUSED, smpl_t pitchscale UNUSED) |
---|
| 50 | { |
---|
| 51 | return AUBIO_FAIL; |
---|
| 52 | } |
---|
| 53 | |
---|
| 54 | smpl_t aubio_pitchshift_get_pitchscale (aubio_pitchshift_t * o UNUSED) |
---|
| 55 | { |
---|
| 56 | return 1.; |
---|
| 57 | } |
---|
| 58 | |
---|
| 59 | uint_t aubio_pitchshift_set_transpose (aubio_pitchshift_t * o UNUSED, smpl_t transpose UNUSED) { |
---|
| 60 | return AUBIO_FAIL; |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | smpl_t aubio_pitchshift_get_transpose (aubio_pitchshift_t * o UNUSED) { |
---|
| 64 | return 0.; |
---|
| 65 | } |
---|
| 66 | |
---|
| 67 | uint_t aubio_pitchshift_get_latency (aubio_pitchshift_t * o UNUSED) { |
---|
| 68 | return 0.; |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | // end of dummy implementation |
---|
| 72 | |
---|
| 73 | #endif /* HAVE_RUBBERBAND */ |
---|