Home
last modified time | relevance | path

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

12

/dports/emulators/qemu42/qemu-4.2.1/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()
632 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
648 j = pom / EG_STEP; /* TL_TABLE steps */ in OPLOpenTable()
679 AMS_TABLE[i] = (1.0/EG_STEP)*pom; /* 1dB */ in OPLOpenTable()
680 AMS_TABLE[AMS_ENT+i] = (4.8/EG_STEP)*pom; /* 4.8dB */ in OPLOpenTable()
/dports/emulators/qemu/qemu-6.2.0/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()
/dports/emulators/qemu60/qemu-6.0.0/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()
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/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()
632 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
648 j = pom / EG_STEP; /* TL_TABLE steps */ in OPLOpenTable()
679 AMS_TABLE[i] = (1.0/EG_STEP)*pom; /* 1dB */ in OPLOpenTable()
680 AMS_TABLE[AMS_ENT+i] = (4.8/EG_STEP)*pom; /* 4.8dB */ in OPLOpenTable()
/dports/emulators/qemu5/qemu-5.2.0/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()
/dports/games/exult/exult-snapshot-v1.7.0.20211128/audio/midi_drivers/
H A Dfmopl.cpp86 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
238 #define SC_KSL(mydb) (static_cast<uint32>((mydb) / (EG_STEP / 2)))
239 #define SC_SL(db) (static_cast<int>((db) * ((3 / EG_STEP) * (1 << ENV_BITS))) + EG_DST)
430 SLOT->TL = static_cast<int>((v & 0x3f) * (0.75 / EG_STEP)); /* 0.75db step */ in set_ksl_tl()
526 int whitenoise = int((std::rand()&1)*(WHITE_NOISE_db/EG_STEP)); in OPL_CALC_RH()
644 double rate = ((1 << TL_BITS) - 1) / pow(10.0, EG_STEP * t / 20); /* dB -> voltage */ in OPLOpenTable()
659 int j = int(pom / EG_STEP); /* TL_TABLE steps */ in OPLOpenTable()
686 AMS_TABLE[i] = static_cast<int>((1.0 / EG_STEP) * pom); /* 1dB */ in OPLOpenTable()
687 AMS_TABLE[AMS_ENT + i] = static_cast<int>((4.8 / EG_STEP) * pom); /* 4.8dB */ in OPLOpenTable()
/dports/emulators/qemu-utils/qemu-4.2.1/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()
632 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
648 j = pom / EG_STEP; /* TL_TABLE steps */ in OPLOpenTable()
679 AMS_TABLE[i] = (1.0/EG_STEP)*pom; /* 1dB */ in OPLOpenTable()
680 AMS_TABLE[AMS_ENT+i] = (4.8/EG_STEP)*pom; /* 4.8dB */ in OPLOpenTable()
/dports/emulators/qemu-guest-agent/qemu-5.0.1/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()
/dports/emulators/qemu-cheri/qemu-0a323821042c36e21ea80e58b9545dfc3b0cb8ef/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()
632 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
648 j = pom / EG_STEP; /* TL_TABLE steps */ in OPLOpenTable()
679 AMS_TABLE[i] = (1.0/EG_STEP)*pom; /* 1dB */ in OPLOpenTable()
680 AMS_TABLE[AMS_ENT+i] = (4.8/EG_STEP)*pom; /* 4.8dB */ in OPLOpenTable()
/dports/emulators/qemu-devel/qemu-de8ed1055c2ce18c95f597eb10df360dcb534f99/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()
/dports/emulators/mesen/Mesen-0.9.8-4-g4c701ad6/Core/
H A DOpllTables.h66 const double EG_STEP = 0.375; variable
135 return d*(int32_t)(TL_STEP / EG_STEP); in TL2EG()
299 tllTable[fnum][block][TL][KL] = (uint32_t)((tmp >> (3 - KL)) / EG_STEP) + TL2EG(TL); in makeTllTable()
H A DOpllChannel.h86 return d*(int32_t)(EG_STEP / DB_STEP); in EG2DB()
91 return d*(int32_t)(SL_STEP / EG_STEP); in SL2EG()
/dports/games/libretro-mame2000/mame2000-libretro-e364a15/src/sound/
H A Dfmopl.c67 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
98 #define ML (0.1875*2/EG_STEP)
146 #define SC(db) (db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST
382 SLOT->TL = (v&0x3f)*(0.75/EG_STEP); /* 0.75db step */ in set_ksl_tl()
473 int whitenoise = (rand()&1)*(WHITE_NOISE_db/EG_STEP); in OPL_CALC_RH()
615 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
631 j = pom / EG_STEP; /* TL_TABLE steps */ in OPLOpenTable()
662 AMS_TABLE[i] = (1.0/EG_STEP)*pom; /* 1dB */ in OPLOpenTable()
663 AMS_TABLE[AMS_ENT+i] = (4.8/EG_STEP)*pom; /* 4.8dB */ in OPLOpenTable()
H A Dfm.c121 #define EG_STEP (96.0/EG_ENT) /* OPL == 0.1875 dB */ macro
139 #define PG_CUT_OFF ((int)(78.0/EG_STEP))
141 #define EG_CUT_OFF ((int)(68.0/EG_STEP))
273 #define SC(db) (int)((db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST)
968 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in FMInitTable()
978 j = (int)(pom / EG_STEP); /* TL_TABLE steps */ in FMInitTable()
1360 …static const int amd_table[4]={(int)(0/EG_STEP),(int)(1.4/EG_STEP),(int)(5.9/EG_STEP),(int)(11.8/E… in OPNWriteReg()
1818 F2610->adpcmTL = &(TL_TABLE[((v&0x3f)^0x3f)*(int)(0.75/EG_STEP)]); in FM_ADPCMAWrite()
2161 F2608->adpcmTL = &(TL_TABLE[0x3f*(int)(0.75/EG_STEP)]); in YM2608ResetChip()
2640 F2610->adpcmTL = &(TL_TABLE[0x3f*(int)(0.75/EG_STEP)]); in YM2610ResetChip()
[all …]
/dports/games/libretro-scummvm/scummvm-7b1e929/audio/softsynth/opl/
H A Dmame.cpp128 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
269 #define SC_KSL(mydb) ((uint) (mydb / (EG_STEP / 2)))
270 #define SC_SL(db) (int)(db * ((3 / EG_STEP) * (1 << ENV_BITS))) + EG_DST
463 SLOT->TL = (int)((v & 0x3f) * (0.75 / EG_STEP)); /* 0.75db step */ in set_ksl_tl()
705 rate = ((1 << TL_BITS) - 1) / pow(10.0, EG_STEP * t / 20); /* dB -> voltage */ in OPLOpenTable()
720 j = int(pom / EG_STEP); /* TL_TABLE steps */ in OPLOpenTable()
752 AMS_TABLE[i] = (int)((1.0 / EG_STEP) * pom); /* 1dB */ in OPLOpenTable()
753 AMS_TABLE[AMS_ENT + i] = (int)((4.8 / EG_STEP) * pom); /* 4.8dB */ in OPLOpenTable()
/dports/games/residualvm/residualvm-0.3.1/audio/softsynth/opl/
H A Dmame.cpp128 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
269 #define SC_KSL(mydb) ((uint) (mydb / (EG_STEP / 2)))
270 #define SC_SL(db) (int)(db * ((3 / EG_STEP) * (1 << ENV_BITS))) + EG_DST
463 SLOT->TL = (int)((v & 0x3f) * (0.75 / EG_STEP)); /* 0.75db step */ in set_ksl_tl()
705 rate = ((1 << TL_BITS) - 1) / pow(10.0, EG_STEP * t / 20); /* dB -> voltage */ in OPLOpenTable()
720 j = int(pom / EG_STEP); /* TL_TABLE steps */ in OPLOpenTable()
752 AMS_TABLE[i] = (int)((1.0 / EG_STEP) * pom); /* 1dB */ in OPLOpenTable()
753 AMS_TABLE[AMS_ENT + i] = (int)((4.8 / EG_STEP) * pom); /* 4.8dB */ in OPLOpenTable()
/dports/games/scummvm/scummvm-2.5.1/audio/softsynth/opl/
H A Dmame.cpp128 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
269 #define SC_KSL(mydb) ((uint) (mydb / (EG_STEP / 2)))
270 #define SC_SL(db) (int)(db * ((3 / EG_STEP) * (1 << ENV_BITS))) + EG_DST
465 SLOT->TL = (int)((v & 0x3f) * (0.75 / EG_STEP)); /* 0.75db step */ in set_ksl_tl()
707 rate = ((1 << TL_BITS) - 1) / pow(10.0, EG_STEP * t / 20); /* dB -> voltage */ in OPLOpenTable()
722 j = int(pom / EG_STEP); /* TL_TABLE steps */ in OPLOpenTable()
754 AMS_TABLE[i] = (int)((1.0 / EG_STEP) * pom); /* 1dB */ in OPLOpenTable()
755 AMS_TABLE[AMS_ENT + i] = (int)((4.8 / EG_STEP) * pom); /* 4.8dB */ in OPLOpenTable()
/dports/games/libretro-bluemsx/blueMSX-libretro-faf470e/Src/SoundChips/
H A DOpenMsxY8950.cpp182 tllTable[fnum][block][TL][KL] = ALIGN(TL, TL_STEP, EG_STEP); in makeTllTable()
186 tllTable[fnum][block][TL][KL] = ALIGN(TL, TL_STEP, EG_STEP); in makeTllTable()
188 tllTable[fnum][block][TL][KL] = (int)((tmp>>(3-KL))/EG_STEP) + ALIGN(TL, TL_STEP, EG_STEP); in makeTllTable()
636 #define S2E(x) (ALIGN((unsigned int)(x/SL_STEP),SL_STEP,EG_STEP)<<(EG_DP_BITS-EG_BITS)) in calc_envelope()
696 egout = ALIGN(egout+tll,EG_STEP,DB_STEP) + (*plfo_am); in calc_envelope()
698 egout = ALIGN(egout+tll,EG_STEP,DB_STEP); in calc_envelope()
H A DFmopl.c68 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
100 #define DV (EG_STEP/2)
148 #define SC(db) (INT32)((db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST)
367 SLOT->TL = (INT32)((v&0x3f)*(0.75/EG_STEP)); /* 0.75db step */ in set_ksl_tl()
458 int whitenoise = (int)((rand()&1)*(WHITE_NOISE_db/EG_STEP)); in OPL_CALC_RH()
592 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
607 j = (int)(pom / EG_STEP); /* TL_TABLE steps */ in OPLOpenTable()
637 AMS_TABLE[i] = (INT32)((1.0/EG_STEP)*pom); /* 1dB */ in OPLOpenTable()
638 AMS_TABLE[AMS_ENT+i] = (INT32)((4.8/EG_STEP)*pom); /* 4.8dB */ in OPLOpenTable()
/dports/games/openxcom/OpenXcom-1.0/src/Engine/Adlib/
H A Dfmopl.cpp93 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
125 #define DV (EG_STEP/2)
173 #define SC(db) (db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST
410 SLOT->TL = (v&0x3f)*(0.75/EG_STEP); /* 0.75db step */ in set_ksl_tl()
501 int whitenoise = (rand()&1)*(WHITE_NOISE_db/EG_STEP); in OPL_CALC_RH()
642 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
658 j = pom / EG_STEP; /* TL_TABLE steps */ in OPLOpenTable()
689 AMS_TABLE[i] = (1.0/EG_STEP)*pom; /* 1dB */ in OPLOpenTable()
690 AMS_TABLE[AMS_ENT+i] = (4.8/EG_STEP)*pom; /* 4.8dB */ in OPLOpenTable()
/dports/audio/deadbeef/deadbeef-0.7.2/plugins/adplug/adplug/
H A Dfmopl.c95 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
127 #define DV (EG_STEP/2)
175 #define SC(db) (db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST
412 SLOT->TL = (v&0x3f)*(0.75/EG_STEP); /* 0.75db step */ in set_ksl_tl()
503 int whitenoise = (rand()&1)*(WHITE_NOISE_db/EG_STEP); in OPL_CALC_RH()
644 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
660 j = pom / EG_STEP; /* TL_TABLE steps */ in OPLOpenTable()
691 AMS_TABLE[i] = (1.0/EG_STEP)*pom; /* 1dB */ in OPLOpenTable()
692 AMS_TABLE[AMS_ENT+i] = (4.8/EG_STEP)*pom; /* 4.8dB */ in OPLOpenTable()
/dports/multimedia/libxine/xine-lib-1.2.11/contrib/nosefart/
H A Dfmopl.c75 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
106 #define ML(x) ((UINT32)((x)*0.1875*2/EG_STEP))
154 #define SC(db) ((INT32) (db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST)
390 SLOT->TL = (INT32) (((v&0x3f)*(0.75/EG_STEP))); /* 0.75db step */ in set_ksl_tl()
481 int whitenoise = (rand()&1)*((int)(WHITE_NOISE_db/EG_STEP)); in OPL_CALC_RH()
622 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
638 j = (int) (pom / EG_STEP); /* TL_TABLE steps */ in OPLOpenTable()
669 AMS_TABLE[i] = (INT32) ((1.0/EG_STEP)*pom); /* 1dB */ in OPLOpenTable()
670 AMS_TABLE[AMS_ENT+i] = (INT32) ((4.8/EG_STEP)*pom); /* 4.8dB */ in OPLOpenTable()
/dports/audio/libadplug/adplug-adplug-2.3.3/src/
H A Dfmopl.c99 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
131 #define DV (EG_STEP/2)
181 #define SC(db) (INT32)((db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST)
418 SLOT->TL = (v&0x3f)*(0.75/EG_STEP); /* 0.75db step */ in set_ksl_tl()
509 int whitenoise = (rand()&1)*(WHITE_NOISE_db/EG_STEP); in OPL_CALC_RH()
650 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */ in OPLOpenTable()
666 j = pom / EG_STEP; /* TL_TABLE steps */ in OPLOpenTable()
697 AMS_TABLE[i] = (1.0/EG_STEP)*pom; /* 1dB */ in OPLOpenTable()
698 AMS_TABLE[AMS_ENT+i] = (4.8/EG_STEP)*pom; /* 4.8dB */ in OPLOpenTable()
/dports/audio/lmms/lmms-1.2.2/plugins/opl2/
H A Dfmopl.c95 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */ macro
126 #define DV (EG_STEP/2)
173 #define SC(db) (db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST
441 SLOT->TL = (v&0x3f)*(0.75/EG_STEP); /* 0.75db step */
553 int whitenoise = (rand()&1)*(WHITE_NOISE_db/EG_STEP);
708 rate = ((1<<TL_BITS)-1)/pow(10,EG_STEP*t/20); /* dB -> voltage */
724 j = pom / EG_STEP; /* TL_TABLE steps */
752 AMS_TABLE[i] = (1.0/EG_STEP)*pom; /* 1dB */
753 AMS_TABLE[AMS_ENT+i] = (4.8/EG_STEP)*pom; /* 4.8dB */
/dports/audio/nosefart/nosefart-1.92f-mls/src/sndhrdw/
H A Dfmopl.c71 #define EG_STEP (96.0/EG_ENT) /* OPL is 0.1875 dB step */
102 #define ML(x) ((UINT32)((x)*0.1875*2/EG_STEP))
150 #define SC(db) ((INT32) (db*((3/EG_STEP)*(1<<ENV_BITS)))+EG_DST)
399 SLOT->TL = (INT32) (((v&0x3f)*(0.75/EG_STEP))); /* 0.75db step */
490 int whitenoise = (rand()&1)*((int)(WHITE_NOISE_db/EG_STEP));
631 rate = ((1<<TL_BITS)-1)/mypow(10,EG_STEP*t/20); /* dB -> voltage */
647 j = (int) (pom / EG_STEP); /* TL_TABLE steps */
678 AMS_TABLE[i] = (INT32) ((1.0/EG_STEP)*pom); /* 1dB */
679 AMS_TABLE[AMS_ENT+i] = (INT32) ((4.8/EG_STEP)*pom); /* 4.8dB */

12