Home
last modified time | relevance | path

Searched refs:ENV_BITS (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/audio/
H A Dfmopl.c75 #define ENV_BITS 16 macro
81 #define EG_OFF ((2*EG_ENT)<<ENV_BITS) /* OFF */
83 #define EG_DST (EG_ENT<<ENV_BITS) /* DECAY START */
167 #define SC(db) (db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST
347 return SLOT->TLL+ENV_CURVE[SLOT->evc>>ENV_BITS]+(SLOT->ams ? ams : 0); in OPL_CALC_SLOT()
583 rate *= (double)(EG_ENT<<ENV_BITS); in init_timetables()
595 ((double)(EG_ENT<<ENV_BITS) / OPL->AR_TABLE[i]) * (1000.0 / OPL->rate), in init_timetables()
596 ((double)(EG_ENT<<ENV_BITS) / OPL->DR_TABLE[i]) * (1000.0 / OPL->rate) )); in init_timetables()
672 ENV_CURVE[(EG_DST>>ENV_BITS)+i]= i; in OPLOpenTable()
675 ENV_CURVE[EG_OFF>>ENV_BITS]= EG_ENT-1; in OPLOpenTable()