diff options
author | FreeArtMan <dos21h@gmail.com> | 2015-10-07 19:36:19 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2015-10-07 19:36:19 +0100 |
commit | e1fd164e62c2dfbd08d0d4699a723cace40d0e8c (patch) | |
tree | 2e845ca8f7512e53cec1cc636578f000ffbd00e6 /test | |
parent | 21c34937937f27a89290f4377b4ff1801079e6ec (diff) | |
download | radiola-e1fd164e62c2dfbd08d0d4699a723cace40d0e8c.tar.gz radiola-e1fd164e62c2dfbd08d0d4699a723cace40d0e8c.zip |
Primitive audio device detection added
Diffstat (limited to 'test')
-rw-r--r-- | test/.gitignore | 1 | ||||
-rw-r--r-- | test/Makefile | 2 | ||||
-rw-r--r-- | test/get_audo_list.c | 11 |
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 |