bis
This commit is contained in:
parent
a9808ba9d4
commit
c74daf7337
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user