aboutsummaryrefslogtreecommitdiff
path: root/soundout/soundout.h
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-07-17 00:38:13 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-07-17 00:38:13 +0900
commite8e5747650626442f8f9940ad5bc37b21ca85ad9 (patch)
tree1c6a0eae92cd834dfbd4fe6286d4bc24821e10ad /soundout/soundout.h
parent44c20e41ddd0c394daf5aa45d88baa95334f04fc (diff)
soundout autoconf
Diffstat (limited to 'soundout/soundout.h')
-rw-r--r--soundout/soundout.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/soundout/soundout.h b/soundout/soundout.h
new file mode 100644
index 0000000..aea926f
--- /dev/null
+++ b/soundout/soundout.h
@@ -0,0 +1,16 @@
+#ifndef MYON_SOUNDOUT_H_INCLUDED
+#define MYON_SOUNDOUT_H_INCLUDED
+
+#include <stdint.h>
+
+typedef void (*sound_callback)(void *userptr, int16_t *buf, unsigned frames);
+
+struct sound_state {
+ void (*pause)(struct sound_state *state, int pause, int flush);
+ void (*free)(struct sound_state *state);
+ const char *apiname;
+};
+
+struct sound_state *sound_init(const char *clientname, unsigned srate, sound_callback cbfunc, void *userptr);
+
+#endif // MYON_SOUNDOUT_H_INCLUDED