Lines Matching refs:SIN_ENT
112 #define SIN_ENT (1<<SIN_ENT_SHIFT) macro
506 #define OP_OUT(slot,env,con) slot->wavetable[((slot->Cnt + con)>>(24-SIN_ENT_SHIFT)) & (SIN_ENT-1…
678 SIN_TABLE = (int **) DS::fastRamAlloc(SIN_ENT * 4 * sizeof(int *)); in OPLOpenTable()
685 if ((SIN_TABLE = (int **)malloc(SIN_ENT * 4 * sizeof(int *))) == NULL) { in OPLOpenTable()
716 SIN_TABLE[0] = SIN_TABLE[SIN_ENT /2 ] = &TL_TABLE[EG_ENT - 1]; in OPLOpenTable()
717 for (s = 1;s <= SIN_ENT / 4; s++) { in OPLOpenTable()
718 pom = sin(2 * M_PI * s / SIN_ENT); /* sin */ in OPLOpenTable()
723 SIN_TABLE[ s] = SIN_TABLE[SIN_ENT / 2 - s] = &TL_TABLE[j]; in OPLOpenTable()
725 SIN_TABLE[SIN_ENT / 2 + s] = SIN_TABLE[SIN_ENT - s] = &TL_TABLE[TL_MAX + j]; in OPLOpenTable()
727 for (s = 0;s < SIN_ENT; s++) { in OPLOpenTable()
728 SIN_TABLE[SIN_ENT * 1 + s] = s < (SIN_ENT / 2) ? SIN_TABLE[s] : &TL_TABLE[EG_ENT]; in OPLOpenTable()
729 SIN_TABLE[SIN_ENT * 2 + s] = SIN_TABLE[s % (SIN_ENT / 2)]; in OPLOpenTable()
730 …SIN_TABLE[SIN_ENT * 3 + s] = (s / (SIN_ENT / 4)) & 1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT * 2 +… in OPLOpenTable()
995 CH->SLOT[slot&1].wavetable = &SIN_TABLE[(v & 0x03) * SIN_ENT]; in OPLWriteReg()