mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-04 23:07:46 -04:00
sound, fix ym2612 output volume for keyon and level changes
This commit is contained in:
parent
f99f0794cf
commit
b26071be31
1 changed files with 3 additions and 3 deletions
|
@ -569,7 +569,7 @@ INLINE void FM_KEYON(int c , int s )
|
||||||
} else {
|
} else {
|
||||||
SLOT->volume = MIN_ATT_INDEX;
|
SLOT->volume = MIN_ATT_INDEX;
|
||||||
}
|
}
|
||||||
// recalc_volout(SLOT);
|
recalc_volout(SLOT);
|
||||||
ym2612.slot_mask |= (1<<s) << (c*4);
|
ym2612.slot_mask |= (1<<s) << (c*4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -608,8 +608,8 @@ INLINE void set_det_mul(FM_CH *CH, FM_SLOT *SLOT, int v)
|
||||||
INLINE void set_tl(FM_SLOT *SLOT, int v)
|
INLINE void set_tl(FM_SLOT *SLOT, int v)
|
||||||
{
|
{
|
||||||
SLOT->tl = (v&0x7f)<<(ENV_BITS-7); /* 7bit TL */
|
SLOT->tl = (v&0x7f)<<(ENV_BITS-7); /* 7bit TL */
|
||||||
// if (SLOT->state > EG_REL)
|
if (SLOT->state > EG_REL)
|
||||||
// recalc_volout(SLOT);
|
recalc_volout(SLOT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set attack rate & key scale */
|
/* set attack rate & key scale */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue