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:
Dominik Wenger 2007-12-14 16:04:38 +00:00
parent b2f7c61f84
commit ed047d9db1
5 changed files with 309 additions and 240 deletions

View file

@ -20,25 +20,13 @@
#include <stdio.h>
#include <stdlib.h>
#include "string.h"
#include "rbspeex.h"
#define USAGE_TEXT \
"Usage: rbspeexdec infile outfile\n"\
"rbspeexdec outputs mono 16 bit 16 kHz WAV files.\n"\
"WARNING: This tool will only decode files made with rbspeexenc!\n"
void put_ushort_le(unsigned short x, unsigned char *out)
{
out[0] = x & 0xff;
out[1] = x >> 8;
}
void put_uint_le(unsigned int x, unsigned char *out)
{
out[0] = x & 0xff;
out[1] = (x >> 8) & 0xff;
out[2] = (x >> 16) & 0xff;
out[3] = x >> 24;
}
int main(int argc, char **argv)
{