From 37c97e345d12f95dde44e1d1a4c2f2aadd4615bc Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 25 Aug 2022 14:54:53 -0500 Subject: add initial structure --- examples/CMakeLists.txt | 5 +++++ examples/example.c | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 examples/CMakeLists.txt create mode 100644 examples/example.c (limited to 'examples') diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000..49dd924 --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,5 @@ +project(mossrose) + +add_executable(example ${CMAKE_CURRENT_LIST_DIR}/example.c) +target_link_libraries(example mossrose) +add_dependencies(examples example) diff --git a/examples/example.c b/examples/example.c new file mode 100644 index 0000000..960b9f2 --- /dev/null +++ b/examples/example.c @@ -0,0 +1,14 @@ +#include +#include + + +#define SAMPLE_RATE 44100 +#define N_CHANNELS 8 + +int main() +{ + mr_init(SAMPLE_RATE, N_CHANNELS); + Pa_Sleep(3000); + mr_terminate(); + return 0; +} -- cgit v1.2.1