comparison ym2612.h @ 935:01fb50390b27

Remove phase increment caching. Fix LFO phase modulation calculation
author Michael Pavone <pavone@retrodev.com>
date Thu, 18 Feb 2016 21:28:33 -0800
parents f33e8d88ab6f
children 5257e85364ed
comparison
equal deleted inserted replaced
934:05b0a0d4fa40 935:01fb50390b27
14 #define NUM_OPERATORS (4*NUM_CHANNELS) 14 #define NUM_OPERATORS (4*NUM_CHANNELS)
15 15
16 #define YM_OPT_WAVE_LOG 1 16 #define YM_OPT_WAVE_LOG 1
17 17
18 typedef struct { 18 typedef struct {
19 uint32_t phase_inc;
20 uint32_t phase_counter; 19 uint32_t phase_counter;
21 uint16_t envelope; 20 uint16_t envelope;
22 int16_t output; 21 int16_t output;
23 uint16_t total_level; 22 uint16_t total_level;
24 uint16_t sustain_level; 23 uint16_t sustain_level;