mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2025-02-28 23:41:33 +01:00
Actually the lag correction is supposed to always be multiplied by the pitch no matter what
This commit is contained in:
parent
bc6b39f800
commit
ce5f162b25
@ -266,12 +266,7 @@ sf::Time SyncedSoundStreams::getPrecisePlayingOffset() const {
|
|||||||
const auto correction = (
|
const auto correction = (
|
||||||
s.stream->alSecOffsetLatencySoft()[1] - s.stream->lag
|
s.stream->alSecOffsetLatencySoft()[1] - s.stream->lag
|
||||||
);
|
);
|
||||||
if (s.reconstruct_on_pitch_change) {
|
return base - (correction * pitch);
|
||||||
return base - (correction * pitch);
|
|
||||||
} else {
|
|
||||||
return base - correction;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SyncedSoundStreams::setPitch(float new_pitch) {
|
void SyncedSoundStreams::setPitch(float new_pitch) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user