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_queue.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'opl/opl_queue.h') diff --git a/opl/opl_queue.h b/opl/opl_queue.h index 20ddeda9..8b4f0dbe 100644 --- a/opl/opl_queue.h +++ b/opl/opl_queue.h @@ -28,12 +28,12 @@ void OPL_Queue_Clear(opl_callback_queue_t *queue); void OPL_Queue_Destroy(opl_callback_queue_t *queue); void OPL_Queue_Push(opl_callback_queue_t *queue, opl_callback_t callback, void *data, - unsigned int time); + uint64_t time); int OPL_Queue_Pop(opl_callback_queue_t *queue, opl_callback_t *callback, void **data); -unsigned int OPL_Queue_Peek(opl_callback_queue_t *queue); +uint64_t OPL_Queue_Peek(opl_callback_queue_t *queue); void OPL_Queue_AdjustCallbacks(opl_callback_queue_t *queue, - unsigned int time, float factor); + uint64_t time, float factor); #endif /* #ifndef OPL_QUEUE_H */ -- cgit v1.2.3