Actually the lag correction is supposed to always be multiplied by the pitch no matter what

This commit is contained in:
Stepland 2022-10-04 01:07:38 +02:00
parent bc6b39f800
commit ce5f162b25

View File

@ -266,12 +266,7 @@ sf::Time SyncedSoundStreams::getPrecisePlayingOffset() const {
const auto correction = (
s.stream->alSecOffsetLatencySoft()[1] - s.stream->lag
);
if (s.reconstruct_on_pitch_change) {
return base - (correction * pitch);
} else {
return base - correction;
}
return base - (correction * pitch);
}
void SyncedSoundStreams::setPitch(float new_pitch) {