From e1fd164e62c2dfbd08d0d4699a723cace40d0e8c Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Wed, 7 Oct 2015 19:36:19 +0100 Subject: Primitive audio device detection added --- test/.gitignore | 1 + test/Makefile | 2 +- test/get_audo_list.c | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/get_audo_list.c (limited to 'test') 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 +#include + +#include "hw/aud.h" + +int main() +{ + audio_get_devices(); + + return 0; +} \ No newline at end of file -- cgit v1.2.3