summaryrefslogtreecommitdiff
path: root/opl/opl_obsd.c
diff options
context:
space:
mode:
authorSimon Howard2014-05-10 14:00:41 -0400
committerSimon Howard2014-05-10 14:00:41 -0400
commit495694da29ff736fba2fdc696553ee7197247174 (patch)
tree49c7cb18a42f9d5302aead68572a8deca8d9445a /opl/opl_obsd.c
parent541267071a118fe5cc702632fdba5817e27b6f76 (diff)
downloadchocolate-doom-495694da29ff736fba2fdc696553ee7197247174.tar.gz
chocolate-doom-495694da29ff736fba2fdc696553ee7197247174.tar.bz2
chocolate-doom-495694da29ff736fba2fdc696553ee7197247174.zip
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.
Diffstat (limited to 'opl/opl_obsd.c')
-rw-r--r--opl/opl_obsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opl/opl_obsd.c b/opl/opl_obsd.c
index 3313c1b2..39e0c156 100644
--- a/opl/opl_obsd.c
+++ b/opl/opl_obsd.c
@@ -110,7 +110,8 @@ opl_driver_t opl_openbsd_driver =
OPL_Timer_ClearCallbacks,
OPL_Timer_Lock,
OPL_Timer_Unlock,
- OPL_Timer_SetPaused
+ OPL_Timer_SetPaused,
+ OPL_Timer_AdjustCallbacks,
};
#endif /* #ifndef NO_OBSD_DRIVER */