Minor fixes master
authorRoman Bazalevsky <rvb@rvb.name>
Tue, 2 Sep 2014 10:05:52 +0000 (14:05 +0400)
committerRoman Bazalevsky <rvb@rvb.name>
Tue, 2 Sep 2014 10:05:52 +0000 (14:05 +0400)
build.sh [new file with mode: 0755]
oss-streamer
oss-streamer.c

diff --git a/build.sh b/build.sh
new file mode 100755 (executable)
index 0000000..2df5077
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+export STAGING_DIR=/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/
+/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc \
+  -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc \
+  -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float \
+  -mips16 -minterlink-mips16 \
+  -I/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include \
+  -I/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include \
+  -I/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include \
+  -I/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include \
+  -L/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib \
+  -L/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib \
+  -L/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib \
+  -L/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib \
+  -I/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include \
+  -I/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include \
+  -I/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include \
+  -I/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include  \
+  -D'SVN_REV="Unversioned directory"' -O2 -DLINUX -D_GNU_SOURCE -Wall  \
+  oss-streamer.c -lpthread -ldl -o oss-streamer
+  
\ No newline at end of file
index ceabc2e898569ffcf81c4b715e07515fc5578253..7fdd265bed34d38e3585b79560de7ca8c2ac276f 100755 (executable)
Binary files a/oss-streamer and b/oss-streamer differ
index a64a16646ca10a9f8e8fa50fc0ad041a2656e701..411c1336ced28e12b813001cff4ef778f0ead87a 100644 (file)
@@ -121,7 +121,7 @@ void help(char *progname)
   fprintf(stderr, "------------------------------------------------------------------\n");
   fprintf(stderr, "Usage: oss-stream" \
                   " [-h | --help ]........: display this help\n" \
   fprintf(stderr, "------------------------------------------------------------------\n");
   fprintf(stderr, "Usage: oss-stream" \
                   " [-h | --help ]........: display this help\n" \
-                  " [-d | --device ]......: video device to open (your camera)\n" \
+                  " [-d | --device ]......: audio device to open (your camera)\n" \
                   " [-p | --port ]........: TCP-port for the server\n" \
                   " [-v | --version ].....: display version information\n" \
                   " [-b | --background]...: fork to the background, daemon mode\n");
                   " [-p | --port ]........: TCP-port for the server\n" \
                   " [-v | --version ].....: display version information\n" \
                   " [-b | --background]...: fork to the background, daemon mode\n");
@@ -279,7 +279,7 @@ int main(int argc, char *argv[])
 
   /* allocate audio datastructure */
 
 
   /* allocate audio datastructure */
 
-  /* open video device and prepare data structure */
+  /* open audio device and prepare data structure */
   if (strcmp(dev,"stdin")==0) {
     source_dev = stdin;
   } else {
   if (strcmp(dev,"stdin")==0) {
     source_dev = stdin;
   } else {