From e8e5747650626442f8f9940ad5bc37b21ca85ad9 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Mon, 17 Jul 2017 00:38:13 +0900 Subject: soundout autoconf --- soundout/soundout.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 soundout/soundout.h (limited to 'soundout/soundout.h') 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 + +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 -- cgit v1.2.3