diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2007-12-14 16:04:38 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2007-12-14 16:04:38 +0000 |
commit | ed047d9db1dcee92afb8fe6bacb5d90ccb39481e (patch) | |
tree | 163bfbbf5316f4e92315c726516515eb4f04a120 /tools/rbspeex/rbspeexdec.c | |
parent | b2f7c61f84191d3d15606400165efe931bb66d2a (diff) | |
download | rockbox-ed047d9db1dcee92afb8fe6bacb5d90ccb39481e.tar.gz rockbox-ed047d9db1dcee92afb8fe6bacb5d90ccb39481e.zip |
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
Diffstat (limited to 'tools/rbspeex/rbspeexdec.c')
-rw-r--r-- | tools/rbspeex/rbspeexdec.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tools/rbspeex/rbspeexdec.c b/tools/rbspeex/rbspeexdec.c index 90562f7309..a29361da3a 100644 --- a/tools/rbspeex/rbspeexdec.c +++ b/tools/rbspeex/rbspeexdec.c @@ -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) { |