summaryrefslogtreecommitdiff
path: root/opl/opl.c
diff options
context:
space:
mode:
Diffstat (limited to 'opl/opl.c')
-rw-r--r--opl/opl.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/opl/opl.c b/opl/opl.c
index 8f75241b..6c2d9c4f 100644
--- a/opl/opl.c
+++ b/opl/opl.c
@@ -105,3 +105,27 @@ unsigned int OPL_ReadPort(opl_port_t port)
}
}
+void OPL_SetCallback(unsigned int ms, opl_callback_t callback, void *data)
+{
+ if (driver != NULL)
+ {
+ driver->set_callback_func(ms, callback, data);
+ }
+}
+
+void OPL_Lock(void)
+{
+ if (driver != NULL)
+ {
+ driver->lock_func();
+ }
+}
+
+void OPL_Unlock(void)
+{
+ if (driver != NULL)
+ {
+ driver->unlock_func();
+ }
+}
+