mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
refactor rbspeex, so we build a librbspeex.a for linking into rbutil.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15924 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b2f7c61f84
commit
ed047d9db1
5 changed files with 309 additions and 240 deletions
34
tools/rbspeex/rbspeex.h
Normal file
34
tools/rbspeex/rbspeex.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/**************************************************************************
|
||||
* __________ __ ___.
|
||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
*
|
||||
* Copyright (C) 2007 Thom Johansen
|
||||
*
|
||||
* All files in this archive are subject to the GNU General Public License.
|
||||
* See the file COPYING in the source tree root for full license agreement.
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
* KIND, either express or implied.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef RBSPEEX_H
|
||||
#define RBSPEEX_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
unsigned int get_long_le(unsigned char *p);
|
||||
bool get_wave_metadata(FILE *fd, int *numchan, int *bps, int *sr, int *numsamples);
|
||||
bool encode_file(FILE *fin, FILE *fout, float quality, int complexity,
|
||||
bool narrowband, float volume, char *errstr, size_t errlen);
|
||||
|
||||
void put_ushort_le(unsigned short x, unsigned char *out);
|
||||
void put_uint_le(unsigned int x, unsigned char *out);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue