shithub: choc

Download patch

ref: 6b2fc8427c0d8ebef9b2af04b262fab1b3723239
parent: bd7a22c321d9fba5922f4c5c62b403376d88e039
author: nukeykt <alexeytf2@icloud.com>
date: Tue Apr 12 12:56:10 EDT 2016

opl: fix time calculation after tempo change

--- a/opl/opl_queue.c
+++ b/opl/opl_queue.c
@@ -210,7 +210,7 @@
     for (i = 0; i < queue->num_entries; ++i)
     {
         offset = queue->entries[i].time - time;
-        queue->entries[i].time = time + (uint64_t) (offset * factor);
+        queue->entries[i].time = time + (uint64_t) (offset / factor);
     }
 }