ref: 4946e59ea3e7557d261655075035165290d9080e
parent: ed77a8fe11aee07db4aea3fa3c361047944e14cc
parent: 6b2fc8427c0d8ebef9b2af04b262fab1b3723239
author: Simon Howard <fraggle+github@gmail.com>
date: Sat Jun 4 20:40:46 EDT 2016
Merge pull request #700 from nukeykt/opl-timer-fix 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);
}
}