diff options
author | Simon Howard | 2014-10-07 22:47:29 -0400 |
---|---|---|
committer | Simon Howard | 2014-10-07 22:47:29 -0400 |
commit | e4d9b85aa45fe31cb9b18a1ac8e9a95c7bc6ea5b (patch) | |
tree | 14ef65fee6563a51e24c7df2a86e5214d267af68 /opl/opl_sdl.c | |
parent | 2afa4144dbb898e3e746a5aeb0af562958fbc27a (diff) | |
download | chocolate-doom-e4d9b85aa45fe31cb9b18a1ac8e9a95c7bc6ea5b.tar.gz chocolate-doom-e4d9b85aa45fe31cb9b18a1ac8e9a95c7bc6ea5b.tar.bz2 chocolate-doom-e4d9b85aa45fe31cb9b18a1ac8e9a95c7bc6ea5b.zip |
opl: Use uint64_t for microsecond times.
Previous revamping of the OPL library changed delay times from ms
to us, and switched to 64-bit times for storage for them. However
this type change was botched and some functions were still using
32-bit arguments. Change to 64-bit types.
Thanks Quasar for reporting this. This fixes #438.
Diffstat (limited to 'opl/opl_sdl.c')
-rw-r--r-- | opl/opl_sdl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/opl/opl_sdl.c b/opl/opl_sdl.c index fa9f047a..8834ee07 100644 --- a/opl/opl_sdl.c +++ b/opl/opl_sdl.c @@ -457,8 +457,7 @@ static void OPL_SDL_PortWrite(opl_port_t port, unsigned int value) } } -static void OPL_SDL_SetCallback(unsigned int us, - opl_callback_t callback, +static void OPL_SDL_SetCallback(uint64_t us, opl_callback_t callback, void *data) { SDL_LockMutex(callback_queue_mutex); |