This commit is contained in:
El-yazide MOHAMED 2025-06-08 09:53:45 +02:00
parent c74daf7337
commit d56266d1f3

View File

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