From 72ce4242077f23b7de876b977397856bd072a6b1 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 11 May 2014 00:14:04 -0400 Subject: opl: Change library to use us instead of ms. Multi-track MIDI files are played back using separate callback chains for each track, and this introduces the possibility of one track becoming out of sync with the others. This was noticeable in WADs that use multi-track MIDIs, such as Alien Vendetta. Increase the timing resolution to microsecond precision to fix this. --- opl/opl_timer.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'opl/opl_timer.h') diff --git a/opl/opl_timer.h b/opl/opl_timer.h index 73544013..adf81503 100644 --- a/opl/opl_timer.h +++ b/opl/opl_timer.h @@ -22,9 +22,7 @@ int OPL_Timer_StartThread(void); void OPL_Timer_StopThread(void); -void OPL_Timer_SetCallback(unsigned int ms, - opl_callback_t callback, - void *data); +void OPL_Timer_SetCallback(uint64_t us, opl_callback_t callback, void *data); void OPL_Timer_ClearCallbacks(void); void OPL_Timer_Lock(void); void OPL_Timer_Unlock(void); -- cgit v1.2.3