summaryrefslogtreecommitdiff
path: root/tools/rbspeex/rbspeex.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rbspeex/rbspeex.h')
-rw-r--r--tools/rbspeex/rbspeex.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/rbspeex/rbspeex.h b/tools/rbspeex/rbspeex.h
new file mode 100644
index 0000000000..00d045c74a
--- /dev/null
+++ b/tools/rbspeex/rbspeex.h
@@ -0,0 +1,34 @@
1/**************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 Thom Johansen
10 *
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.
13 *
14 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
15 * KIND, either express or implied.
16 *
17 ***************************************************************************/
18
19#ifndef RBSPEEX_H
20#define RBSPEEX_H
21
22#include <stdbool.h>
23
24unsigned int get_long_le(unsigned char *p);
25bool get_wave_metadata(FILE *fd, int *numchan, int *bps, int *sr, int *numsamples);
26bool encode_file(FILE *fin, FILE *fout, float quality, int complexity,
27 bool narrowband, float volume, char *errstr, size_t errlen);
28
29void put_ushort_le(unsigned short x, unsigned char *out);
30void put_uint_le(unsigned int x, unsigned char *out);
31
32
33#endif
34