1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2006 by Nicolas Pitre <nico@cam.org>
11 * Copyright (C) 2006-2007 by Stéphane Doyon <s.doyon@videotron.ca>
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
26 #define TDSPEED_OUTBUFSIZE 4096
28 void tdspeed_init(void);
29 bool tdspeed_config(int samplerate
, bool stereo
, int factor
);
30 long tdspeed_est_output_size(void);
31 long tdspeed_est_input_size(long size
);
32 int tdspeed_doit(int32_t *src
[], int count
);
34 #define STRETCH_MAX 250
35 #define STRETCH_MIN 35