diff options
Diffstat (limited to 'sound/fmopl.cpp')
-rw-r--r-- | sound/fmopl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/fmopl.cpp b/sound/fmopl.cpp index ddba9dbfef..056459ceea 100644 --- a/sound/fmopl.cpp +++ b/sound/fmopl.cpp @@ -451,7 +451,7 @@ inline void OPL_CALC_CH(OPL_CH *CH) { env_out=OPL_CALC_SLOT(SLOT); if(env_out < (uint)(EG_ENT - 1)) { /* PG */ - if(SLOT->vib) + if(SLOT->vib) SLOT->Cnt += (SLOT->Incr * vib / VIB_RATE); else SLOT->Cnt += SLOT->Incr; @@ -487,7 +487,7 @@ inline void OPL_CALC_CH(OPL_CH *CH) { inline void OPL_CALC_RH(OPL_CH *CH) { uint env_tam, env_sd, env_top, env_hh; int whitenoise = int(oplRnd.getRandomNumber(1) * (WHITE_NOISE_db / EG_STEP)); - + int tone8; OPL_SLOT *SLOT; @@ -584,7 +584,7 @@ static void init_timetables(FM_OPL *OPL, int ARRATE, int DRRATE) { OPL->AR_TABLE[i] = OPL->DR_TABLE[i] = 0; for (i = 4; i <= 60; i++){ rate = OPL->freqbase; /* frequency rate */ - if(i < 60) + if(i < 60) rate *= 1.0 + (i & 3) * 0.25; /* b0-1 : x1 , x1.25 , x1.5 , x1.75 */ rate *= 1 << ((i >> 2) - 1); /* b2-5 : shift bit */ rate *= (double)(EG_ENT << ENV_BITS); @@ -973,7 +973,7 @@ void YM3812UpdateOne(FM_OPL *OPL, int16 *buffer, int length) { ARM_CALL(ARM_COMMON, PNO_DATA()) ARM_END(); #endif - + int i; int data; int16 *buf = buffer; |