1 /**************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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 ***************************************************************************/
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
);