comparison ym2612.h @ 1656:804f13c090b4

Optimize YM operator modulation
author Mike Pavone <pavone@retrodev.com>
date Sun, 30 Dec 2018 18:48:08 -0800
parents 6ce36c3f250b
children 5278b6e44fc1
comparison
equal deleted inserted replaced
1655:3128d4e0bc68 1656:804f13c090b4
16 #define NUM_OPERATORS (4*NUM_CHANNELS) 16 #define NUM_OPERATORS (4*NUM_CHANNELS)
17 17
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 uint32_t phase_counter; 22 uint32_t phase_counter;
22 uint16_t envelope; 23 uint16_t envelope;
23 int16_t output; 24 int16_t output;
24 uint16_t total_level; 25 uint16_t total_level;
25 uint16_t sustain_level; 26 uint16_t sustain_level;