From 09ea1fe272aca6ebb6840f02765acd44ac3ecebc Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 7 Jan 2017 13:39:17 +0900 Subject: win32 --- win32/soundout.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 win32/soundout.h (limited to 'win32/soundout.h') diff --git a/win32/soundout.h b/win32/soundout.h new file mode 100644 index 0000000..edfa501 --- /dev/null +++ b/win32/soundout.h @@ -0,0 +1,18 @@ +#ifndef MYON_SOUNDOUT_H_INCLUDED +#define MYON_SOUNDOUT_H_INCLUDED + +#include +#include + +typedef void (*sound_callback)(void *userdata, int16_t *buf, unsigned frames); +struct sound_state { + void *driver_state; + void (*pause)(struct sound_state *state, int pause); + void (*delete)(struct sound_state *state); + void *userptr; +}; + +struct sound_state *sound_init(HWND hwnd, unsigned srate, unsigned sectlen, + sound_callback cbfunc, void *userptr); + +#endif // MYON_SOUNDOUT_H_INCLUDED -- cgit v1.2.3