source: src/effects/pitchshift_dummy.c @ 1e4b7f6

samplertimestretch
Last change on this file since 1e4b7f6 was 25a19c2, checked in by Paul Brossier <piem@piem.org>, 8 years ago

src/effects/pitchshift.h: split implementations in two files, move option parsing to rubberband_utils.c

  • Property mode set to 100644
File size: 1.8 KB
Line 
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
21#include "config.h"
22
23#ifndef HAVE_RUBBERBAND
24
25#include "aubio_priv.h"
26#include "fvec.h"
27#include "effects/pitchshift.h"
28
29// TODO fallback pitch shifting implementation
30
31struct _aubio_pitchshift_t
32{
33  void *dummy;
34};
35
36void aubio_pitchshift_do (aubio_pitchshift_t * o UNUSED, const fvec_t * in UNUSED,
37    fvec_t * out UNUSED) {
38}
39
40void del_aubio_pitchshift (aubio_pitchshift_t * o UNUSED) {
41}
42
43aubio_pitchshift_t *new_aubio_pitchshift (const char_t * method UNUSED,
44    smpl_t pitchscale UNUSED, uint_t hop_size UNUSED, uint_t samplerate UNUSED)
45{
46  AUBIO_ERR ("aubio was not compiled with rubberband\n");
47  return NULL;
48}
49
50uint_t aubio_pitchshift_set_pitchscale (aubio_pitchshift_t * o UNUSED, smpl_t pitchscale UNUSED)
51{
52  return AUBIO_FAIL;
53}
54
55smpl_t aubio_pitchshift_get_pitchscale (aubio_pitchshift_t * o UNUSED)
56{
57  return 1.;
58}
59
60uint_t aubio_pitchshift_set_transpose (aubio_pitchshift_t * o UNUSED, smpl_t transpose UNUSED) {
61  return AUBIO_FAIL;
62}
63
64smpl_t aubio_pitchshift_get_transpose (aubio_pitchshift_t * o UNUSED) {
65  return 0.;
66}
67
68uint_t aubio_pitchshift_get_latency (aubio_pitchshift_t * o UNUSED) {
69  return 0.;
70}
71
72// end of dummy implementation
73
74#endif /* HAVE_RUBBERBAND */
Note: See TracBrowser for help on using the repository browser.