This commit is contained in:
El-yazide MOHAMED 2025-06-08 10:55:22 +02:00
parent 911049a2fe
commit 0352efbc34

View File

@ -51,7 +51,7 @@ socket.on('position', (position) => {
isPlaying = true; isPlaying = true;
} }
// SENSIBILITÉ : le facteur diviseur est plus grand → plus doux // SENSIBILITÉ : le facteur diviseur est plus grand → plus doux
let playbackSpeed = 0.5 + speed / 900; let playbackSpeed = 0.5 + speed / 600;
playbackSpeed = Math.min(Math.max(playbackSpeed, 0.5), 1.1); // plage limitée à x1 max playbackSpeed = Math.min(Math.max(playbackSpeed, 0.5), 1.1); // plage limitée à x1 max
audio.playbackRate = playbackSpeed; audio.playbackRate = playbackSpeed;
} }