1
0
Fork 0

Use type-specific host conversion funcs

This commit is contained in:
krcroft 2020-04-14 17:41:19 -07:00 committed by Patryk Obara
parent 297229700c
commit 7375db2a83
2 changed files with 8 additions and 8 deletions

View file

@ -505,8 +505,8 @@ static void MIXER_MixData(Bitu needed) {
const int32_t sample_2 = mixer.work[readpos][1] >> MIXER_VOLSHIFT;
const int16_t s1 = MIXER_CLIP(sample_1);
const int16_t s2 = MIXER_CLIP(sample_2);
convert[i][0] = host_to_le(static_cast<uint16_t>(s1));
convert[i][1] = host_to_le(static_cast<uint16_t>(s2));
convert[i][0] = host_to_le16(s1);
convert[i][1] = host_to_le16(s2);
readpos = (readpos + 1) & MIXER_BUFMASK;
}
CAPTURE_AddWave(mixer.freq, added, reinterpret_cast<int16_t*>(convert));