Update the WPS build script so that included builds can have various additional featu...
[Rockbox.git] / tools / rbspeex / rbspeex.h
blob00d045c74a4d40ac4214f203072856038ca2a3de
1 /**************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 Thom Johansen
11 * All files in this archive are subject to the GNU General Public License.
12 * See the file COPYING in the source tree root for full license agreement.
14 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
15 * KIND, either express or implied.
17 ***************************************************************************/
19 #ifndef RBSPEEX_H
20 #define RBSPEEX_H
22 #include <stdbool.h>
24 unsigned int get_long_le(unsigned char *p);
25 bool get_wave_metadata(FILE *fd, int *numchan, int *bps, int *sr, int *numsamples);
26 bool encode_file(FILE *fin, FILE *fout, float quality, int complexity,
27 bool narrowband, float volume, char *errstr, size_t errlen);
29 void put_ushort_le(unsigned short x, unsigned char *out);
30 void put_uint_le(unsigned int x, unsigned char *out);
33 #endif