aboutsummaryrefslogtreecommitdiff
path: root/win32/soundout.h
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-01-26 20:32:26 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-01-26 20:32:26 +0900
commitfc1ea6ee5b5135e70e1a0e9b2737f6189b740691 (patch)
tree53f206e2f77e3450f8c0def24c488ef19ac3a72d /win32/soundout.h
parent49ecf760ec6e8b145850be6f3b13020502e10eb4 (diff)
refactor win32 sound output and improve stability under load
Diffstat (limited to 'win32/soundout.h')
-rw-r--r--win32/soundout.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/win32/soundout.h b/win32/soundout.h
index edfa501..93b0286 100644
--- a/win32/soundout.h
+++ b/win32/soundout.h
@@ -6,10 +6,9 @@
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;
+ void (*free)(struct sound_state *state);
+ const wchar_t *apiname;
};
struct sound_state *sound_init(HWND hwnd, unsigned srate, unsigned sectlen,