summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/.gitignore1
-rw-r--r--test/Makefile2
-rw-r--r--test/get_audo_list.c11
3 files changed, 13 insertions, 1 deletions
diff --git a/test/.gitignore b/test/.gitignore
index c096546..b4557b8 100644
--- a/test/.gitignore
+++ b/test/.gitignore
@@ -2,4 +2,5 @@ get_device_list
read_samples
ui_tui_waterfall
ui_gl_waterfall
+get_audo_list
*.o
diff --git a/test/Makefile b/test/Makefile
index d14f27d..a8160e8 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,7 +1,7 @@
CC=gcc
CFLAGS=-I../
#LDFLAGS= `pkg-config --libs libusb` -L../../../r820t -lr820t -Wl,-rpath=../../../r820t
-LDFLAGS=`pkg-config --libs libusb` `sdl2-config --cflags --libs` -lrtlsdr -lm ../radiola.o
+LDFLAGS=`pkg-config --libs libusb` `sdl2-config --cflags --libs` -lrtlsdr -lm ../radiola.o -lasound
SOURCE = $(wildcard *.c)
OBJECTS =
BIN = $(SOURCE:.c=)
diff --git a/test/get_audo_list.c b/test/get_audo_list.c
new file mode 100644
index 0000000..65a6193
--- /dev/null
+++ b/test/get_audo_list.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "hw/aud.h"
+
+int main()
+{
+ audio_get_devices();
+
+ return 0;
+} \ No newline at end of file