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_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'opl/opl_internal.h') diff --git a/opl/opl_internal.h b/opl/opl_internal.h index 91a275d5..24e79644 100644 --- a/opl/opl_internal.h +++ b/opl/opl_internal.h @@ -32,6 +32,7 @@ typedef void (*opl_clear_callbacks_func)(void); typedef void (*opl_lock_func)(void); typedef void (*opl_unlock_func)(void); typedef void (*opl_set_paused_func)(int paused); +typedef void (*opl_adjust_callbacks_func)(float value); typedef struct { @@ -46,6 +47,7 @@ typedef struct opl_lock_func lock_func; opl_unlock_func unlock_func; opl_set_paused_func set_paused_func; + opl_adjust_callbacks_func adjust_callbacks_func; } opl_driver_t; // Sample rate to use when doing software emulation. -- cgit v1.2.3