summaryrefslogtreecommitdiff
path: root/ym2612.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-09-07 22:18:09 -0700
committerMichael Pavone <pavone@retrodev.com>2019-09-07 22:18:09 -0700
commit803a402cb12ee895a963b8bd5b53b3faec8dece1 (patch)
treed7484b3a70536b1481c555848b47093ec1d93092 /ym2612.h
parent27b280687ae910262e5c42aa6f15f3c3461d9d9d (diff)
Cache operator phase increment for a small perf improvement
Diffstat (limited to 'ym2612.h')
-rw-r--r--ym2612.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ym2612.h b/ym2612.h
index 81f678f..860e642 100644
--- a/ym2612.h
+++ b/ym2612.h
@@ -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;