vboysound.cpp: fix longstanding regression with way overdriven outputs

This commit is contained in:
angelosa 2023-04-07 20:55:38 +02:00
parent b0e88ea915
commit 8994dbb3f6

View File

@ -384,8 +384,8 @@ void vboysnd_device::sound_stream_update(sound_stream &stream, std::vector<read_
note_left = (note_left << 5) | ((note_left >> 6) & 0x1f);
note_right = (note_right << 5) | ((note_right >> 6) & 0x1f);
outL.put_int_clamp(j, (int16_t)note_left, 32768);
outR.put_int_clamp(j, (int16_t)note_right, 32768);
outL.put_int_clamp(j, note_left, 32768);
outR.put_int_clamp(j, note_right, 32768);
}
}