diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-18 23:30:29 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-18 23:30:29 +0300 |
commit | 1f42ea6cd3035e7b5c1abe1bfaee110e4a558401 (patch) | |
tree | 26dd7c62292a20f5b1b28b247a7f95768759b8fc | |
parent | 145775818375bafcf191a7b4986e57a00b41ac68 (diff) |
edit readme
-rw-r--r-- | README.md | 7 | ||||
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | src/listener.c | 2 |
3 files changed, 7 insertions, 4 deletions
@@ -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 @@ -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); } |