diff options
Diffstat (limited to 'opl/opl_timer.c')
-rw-r--r-- | opl/opl_timer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/opl/opl_timer.c b/opl/opl_timer.c index 97e5ea8b..bab15687 100644 --- a/opl/opl_timer.c +++ b/opl/opl_timer.c @@ -224,6 +224,13 @@ void OPL_Timer_ClearCallbacks(void) SDL_UnlockMutex(callback_queue_mutex); } +void OPL_Timer_AdjustCallbacks(float factor) +{ + SDL_LockMutex(callback_queue_mutex); + OPL_Queue_AdjustCallbacks(callback_queue, current_time, factor); + SDL_UnlockMutex(callback_queue_mutex); +} + void OPL_Timer_Lock(void) { SDL_LockMutex(timer_mutex); |