ScummVM API documentation
Resid::EnvelopeGenerator Class Reference

Public Types

enum  State { ATTACK, DECAY_SUSTAIN, RELEASE }
 

Public Member Functions

void updateClock (cycle_count delta_t)
 
void reset ()
 
void writeCONTROL_REG (reg8)
 
void writeATTACK_DECAY (reg8)
 
void writeSUSTAIN_RELEASE (reg8)
 
reg8 readENV ()
 
reg8 output ()
 

Protected Attributes

reg16 rate_counter
 
reg16 rate_period
 
reg8 exponential_counter
 
reg8 exponential_counter_period
 
reg8 envelope_counter
 
bool hold_zero
 
reg4 attack
 
reg4 decay
 
reg4 sustain
 
reg4 release
 
reg8 gate
 
State state
 

Static Protected Attributes

static const data16 rate_counter_period []
 
static const data8 sustain_level []
 

The documentation for this class was generated from the following file: