Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1879:43a6cee4fd00 | 1880:e77f7a7c79a5 |
---|---|
18 #define YM_OPT_WAVE_LOG 1 | 18 #define YM_OPT_WAVE_LOG 1 |
19 | 19 |
20 typedef struct { | 20 typedef struct { |
21 int16_t *mod_src[2]; | 21 int16_t *mod_src[2]; |
22 uint32_t phase_counter; | 22 uint32_t phase_counter; |
23 uint32_t phase_inc; | |
23 uint16_t envelope; | 24 uint16_t envelope; |
24 int16_t output; | 25 int16_t output; |
25 uint16_t total_level; | 26 uint16_t total_level; |
26 uint16_t sustain_level; | 27 uint16_t sustain_level; |
27 uint8_t rates[4]; | 28 uint8_t rates[4]; |