Home
last modified time | relevance | path

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

/openbmc/qemu/hw/audio/
H A Dfmopl.c87 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
119 #define DV (EG_STEP/2)
167 #define SC(db) (db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST
400 SLOT->TL = (v&0x3f)*(0.75/EG_STEP); /* 0.75db step */ in set_ksl_tl()
491 int whitenoise = (rand()&1)*(WHITE_NOISE_db/EG_STEP); in OPL_CALC_RH()
633 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
649 j = pom / EG_STEP; /* TL_TABLE steps */ in OPLOpenTable()
680 AMS_TABLE[i] = (1.0/EG_STEP)*pom; /* 1dB */ in OPLOpenTable()
681 AMS_TABLE[AMS_ENT+i] = (4.8/EG_STEP)*pom; /* 4.8dB */ in OPLOpenTable()