aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md7
-rwxr-xr-xbuild.sh2
-rw-r--r--src/listener.c2
3 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index 7bffea3..e67b811 100644
--- a/README.md
+++ b/README.md
@@ -5,12 +5,13 @@ through udp datagram sockets
### Libraries and APIs
-This project is written only on C, using the following techonologies:
+This project is written only in C, using the following techonologies:
+
1. V4L2 - video for linux api for getting images from the camera
2. Pulse Audio Simple API for playing and recording audio (will be changed to alsa soon)
3. GLFW with OpenGL for displaying the recieved image
-No other external libraires and things.
+No other external libraries or APIs are used.
### Limitations
@@ -18,7 +19,7 @@ No other external libraires and things.
2. Crappy audio, most likely because of pulse audio
3. Works only one linux, I don't plan porting it to windows.
-### TODO
+### Todo
1. Use alsa and not pulse audio simple api
2. MUST run at 30 fps
diff --git a/build.sh b/build.sh
index cf18d8a..423bf57 100755
--- a/build.sh
+++ b/build.sh
@@ -2,7 +2,7 @@
cd ${0%/*} # go to project root
-FLAGS="-g -Wall -Wextra -pedantic -lpthread"
+FLAGS="-g -Wall -Wextra -pedantic -lpthread -std=c99"
FGLFW="-lGL -lglfw"
FV4L2="-lv4l2"
FPASM="-lpulse -lpulse-simple"
diff --git a/src/listener.c b/src/listener.c
index 141a3f3..9360c55 100644
--- a/src/listener.c
+++ b/src/listener.c
@@ -27,6 +27,8 @@ void *display_thread(void *arg)
void on_recv(char *buf, int numbytes)
{
+ (void)numbytes;
+
memcpy(cam_data, &(buf[REC_CAP]), BUF_CAP-REC_CAP);
audio_play(buf);
}