capture audio with alsa

This commit is contained in:
talksik
2025-07-13 11:52:09 -07:00
parent 57133f3d2c
commit 5abbeb5dcd
5 changed files with 154 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
CC = gcc
CFLAGS = -Wall -g
TARGET = audio_capture
SRC = audio_capture.c
LIBS = -lavdevice -lavformat -lavcodec -lavutil -lasound
$(TARGET): $(SRC)
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LIBS)
clean:
rm -f *.o $(TARGET)
install-deps:
sudo apt install build-essential libavformat-dev libavdevice-dev libavcodec-dev libavutil-dev libasound2-dev