summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mossrose.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/mossrose.h b/include/mossrose.h
index fb7d088..5ca454a 100644
--- a/include/mossrose.h
+++ b/include/mossrose.h
@@ -3,10 +3,16 @@
#include <stddef.h>
+struct mossrose_sound_t {
+ float *left;
+ float *right;
+ size_t len;
+};
+
int mossrose_init(double sample_rate, int n_channels);
int mossrose_terminate();
-int mossrose_play(float *left, float *right, size_t n_samples, int channel);
+int mossrose_play(struct mossrose_sound_t *sound, int channel);
#endif