From 495694da29ff736fba2fdc696553ee7197247174 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 10 May 2014 14:00:41 -0400 Subject: opl: Add API to adjust tempo. When the tempo is changed, the times on all active timers must be adjusted to match the new timing values. Add an API to do this and invoke it when a tempo change meta event is read. --- opl/opl_win32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opl/opl_win32.c') diff --git a/opl/opl_win32.c b/opl/opl_win32.c index c6c37803..ea7b9eeb 100644 --- a/opl/opl_win32.c +++ b/opl/opl_win32.c @@ -184,7 +184,8 @@ opl_driver_t opl_win32_driver = OPL_Timer_ClearCallbacks, OPL_Timer_Lock, OPL_Timer_Unlock, - OPL_Timer_SetPaused + OPL_Timer_SetPaused, + OPL_Timer_AdjustCallbacks, }; #endif /* #ifdef _WIN32 */ -- cgit v1.2.3