This commit is contained in:
El-yazide MOHAMED 2025-06-08 09:51:07 +02:00
parent a9808ba9d4
commit c74daf7337

View File

@ -51,8 +51,8 @@ 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 / 1000; let playbackSpeed = 0.5 + speed / 800;
playbackSpeed = Math.min(Math.max(playbackSpeed, 0.5), 1.0); // plage limitée à x1 max playbackSpeed = Math.min(Math.max(playbackSpeed, 0.5), 1.2); // plage limitée à x1 max
audio.playbackRate = playbackSpeed; audio.playbackRate = playbackSpeed;
} }
} }