From d5ac165fdeb7b0c596a1d95845262b68f35e14d7 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 28 Oct 2019 15:49:51 -0400 Subject: move timers to cetris lib, add rulesets, add audio to sdl --- test/a.out | Bin 0 -> 16712 bytes test/memory_test.c | 2 +- test/meson.build | 5 +++-- test/sdl_audio.c | 12 ++++++++++++ 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100755 test/a.out create mode 100644 test/sdl_audio.c (limited to 'test') diff --git a/test/a.out b/test/a.out new file mode 100755 index 0000000..bd6f439 Binary files /dev/null and b/test/a.out differ diff --git a/test/memory_test.c b/test/memory_test.c index 4b00aab..8966a4f 100644 --- a/test/memory_test.c +++ b/test/memory_test.c @@ -1,6 +1,6 @@ #include -#include "cetris.h" +#include int main(void) { cetris_game game; diff --git a/test/meson.build b/test/meson.build index 351be02..f5b9ae4 100644 --- a/test/meson.build +++ b/test/meson.build @@ -1,5 +1,6 @@ mem_test = ['memory_test.c'] executable('mem_test', mem_test, - include_directories: cetris_inc, - install: false) + dependencies: cetris, + include_directories: cetris_inc, + install: false) diff --git a/test/sdl_audio.c b/test/sdl_audio.c new file mode 100644 index 0000000..53f2514 --- /dev/null +++ b/test/sdl_audio.c @@ -0,0 +1,12 @@ +#include + +int main(void) { + int i, count = SDL_GetNumAudioDevices(0); + + printf("count: %i\n", count); + for (i = 0; i < count; ++i) { + SDL_Log("Audio device %d: %s", i, SDL_GetAudioDeviceName(i, 0)); + printf("Audio device %d: %s", i, SDL_GetAudioDeviceName(i, 0)); + } + return 0; +} -- cgit v1.2.3-101-g0448