diff ym2612.h @ 1880:e77f7a7c79a5

Cache operator phase increment for a small perf improvement
author Michael Pavone <pavone@retrodev.com>
date Sat, 07 Sep 2019 22:18:09 -0700
parents 4c322abd9fa5
children 32a3aa7b4a45
line wrap: on
line diff
--- a/ym2612.h	Fri Sep 06 09:13:44 2019 -0700
+++ b/ym2612.h	Sat Sep 07 22:18:09 2019 -0700
@@ -20,6 +20,7 @@
 typedef struct {
 	int16_t  *mod_src[2];
 	uint32_t phase_counter;
+	uint32_t phase_inc;
 	uint16_t envelope;
 	int16_t  output;
 	uint16_t total_level;