summaryrefslogtreecommitdiff
path: root/tools/rbspeex/rbspeexdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rbspeex/rbspeexdec.c')
-rw-r--r--tools/rbspeex/rbspeexdec.c14
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 @@
20#include <stdio.h> 20#include <stdio.h>
21#include <stdlib.h> 21#include <stdlib.h>
22#include "string.h" 22#include "string.h"
23#include "rbspeex.h"
23 24
24 #define USAGE_TEXT \ 25 #define USAGE_TEXT \
25"Usage: rbspeexdec infile outfile\n"\ 26"Usage: rbspeexdec infile outfile\n"\
26"rbspeexdec outputs mono 16 bit 16 kHz WAV files.\n"\ 27"rbspeexdec outputs mono 16 bit 16 kHz WAV files.\n"\
27"WARNING: This tool will only decode files made with rbspeexenc!\n" 28"WARNING: This tool will only decode files made with rbspeexenc!\n"
28 29
29void put_ushort_le(unsigned short x, unsigned char *out)
30{
31 out[0] = x & 0xff;
32 out[1] = x >> 8;
33}
34
35void put_uint_le(unsigned int x, unsigned char *out)
36{
37 out[0] = x & 0xff;
38 out[1] = (x >> 8) & 0xff;
39 out[2] = (x >> 16) & 0xff;
40 out[3] = x >> 24;
41}
42 30
43int main(int argc, char **argv) 31int main(int argc, char **argv)
44{ 32{