summaryrefslogtreecommitdiff
path: root/examples/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example.c')
-rw-r--r--examples/example.c14
1 files changed, 14 insertions, 0 deletions
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 <mossrose.h>
+#include <portaudio.h>
+
+
+#define SAMPLE_RATE 44100
+#define N_CHANNELS 8
+
+int main()
+{
+ mr_init(SAMPLE_RATE, N_CHANNELS);
+ Pa_Sleep(3000);
+ mr_terminate();
+ return 0;
+}