From e4d9b85aa45fe31cb9b18a1ac8e9a95c7bc6ea5b Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 7 Oct 2014 22:47:29 -0400 Subject: 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. --- opl/opl_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opl/opl_internal.h') diff --git a/opl/opl_internal.h b/opl/opl_internal.h index 2d027ad8..452b8e3d 100644 --- a/opl/opl_internal.h +++ b/opl/opl_internal.h @@ -25,7 +25,7 @@ typedef int (*opl_init_func)(unsigned int port_base); typedef void (*opl_shutdown_func)(void); typedef unsigned int (*opl_read_port_func)(opl_port_t port); typedef void (*opl_write_port_func)(opl_port_t port, unsigned int value); -typedef void (*opl_set_callback_func)(unsigned int us, +typedef void (*opl_set_callback_func)(uint64_t us, opl_callback_t callback, void *data); typedef void (*opl_clear_callbacks_func)(void); -- cgit v1.2.3