From f45b143dcf90970122436d10bd6226f577a9310d Mon Sep 17 00:00:00 2001 From: kartofen Date: Sat, 22 Oct 2022 23:53:29 +0300 Subject: works with alsa and runs at 30 fps --- build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 423bf57..096fa61 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,8 @@ cd ${0%/*} # go to project root FLAGS="-g -Wall -Wextra -pedantic -lpthread -std=c99" FGLFW="-lGL -lglfw" FV4L2="-lv4l2" -FPASM="-lpulse -lpulse-simple" +# FPASM="-lpulse -lpulse-simple" +FALSA="-lasound" SRC="src" OBJ="obj" BIN="bin" @@ -31,5 +32,5 @@ gcc -o $OBJ/display.o -c $SRC/display.c gcc -o $OBJ/camera.o -c $SRC/camera.c gcc -o $OBJ/audio.o -c $SRC/audio.c -gcc -o $BIN/listener $SRC/listener.c $OBJ/socket.o $OBJ/display.o $OBJ/audio.o $FLAGS $FPASM $FGLFW -gcc -o $BIN/talker $SRC/talker.c $OBJ/socket.o $OBJ/camera.o $OBJ/audio.o $FLAGS $FPASM $FV4L2 +gcc -o $BIN/listener $SRC/listener.c $OBJ/socket.o $OBJ/display.o $OBJ/audio.o $FLAGS $FALSA $FGLFW +gcc -o $BIN/talker $SRC/talker.c $OBJ/socket.o $OBJ/camera.o $OBJ/audio.o $FLAGS $FALSA $FV4L2 -- cgit v1.2.3