CDROM: Remove redundant min()

pull/3356/head
Stenzek 1 month ago
parent 10de915ae0
commit 804b8ff777
No known key found for this signature in database

@ -3821,7 +3821,7 @@ ALWAYS_INLINE_RELEASE void CDROM::ProcessCDDASector(const u8* raw_sector, const
}
const u8 channel = subq.absolute_second_bcd & 1u;
const s16 peak_volume = std::min<s16>(GetPeakVolume(raw_sector, channel), 32767);
const s16 peak_volume = GetPeakVolume(raw_sector, channel);
const u16 peak_value = (ZeroExtend16(channel) << 15) | peak_volume;
s_state.async_response_fifo.Push(Truncate8(peak_value)); // peak low

Loading…
Cancel
Save