mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
ymz280b: Fix major mixer overdriving [R. Belmont]
This commit is contained in:
parent
1fa29c1f78
commit
d0cf574b51
1 changed files with 4 additions and 4 deletions
|
@ -452,8 +452,8 @@ void ymz280b_device::sound_stream_update(sound_stream &stream, std::vector<read_
|
|||
while (remaining > 0 && voice->output_pos < FRAC_ONE)
|
||||
{
|
||||
int interp_sample = ((s32(prev) * (FRAC_ONE - voice->output_pos)) + (s32(curr) * voice->output_pos)) >> FRAC_BITS;
|
||||
lacc.add_int(sampindex, interp_sample * lvol, 32768 * 256);
|
||||
racc.add_int(sampindex, interp_sample * rvol, 32768 * 256);
|
||||
lacc.add_int(sampindex, interp_sample * lvol / 2, 32768 * 256);
|
||||
racc.add_int(sampindex, interp_sample * rvol / 2, 32768 * 256);
|
||||
sampindex++;
|
||||
voice->output_pos += voice->output_step;
|
||||
remaining--;
|
||||
|
@ -517,8 +517,8 @@ void ymz280b_device::sound_stream_update(sound_stream &stream, std::vector<read_
|
|||
while (remaining > 0 && voice->output_pos < FRAC_ONE)
|
||||
{
|
||||
int interp_sample = ((s32(prev) * (FRAC_ONE - voice->output_pos)) + (s32(curr) * voice->output_pos)) >> FRAC_BITS;
|
||||
lacc.add_int(sampindex, interp_sample * lvol, 32768 * 256);
|
||||
racc.add_int(sampindex, interp_sample * rvol, 32768 * 256);
|
||||
lacc.add_int(sampindex, interp_sample * lvol / 2, 32768 * 256);
|
||||
racc.add_int(sampindex, interp_sample * rvol / 2, 32768 * 256);
|
||||
sampindex++;
|
||||
voice->output_pos += voice->output_step;
|
||||
remaining--;
|
||||
|
|
Loading…
Reference in a new issue