Remove playbackrate changing
This commit is contained in:
parent
b2f13c600f
commit
97b00bc7bc
2 changed files with 3 additions and 5 deletions
|
@ -47,8 +47,6 @@ function converter(html) {
|
||||||
|
|
||||||
var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config/config.json')))
|
var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config/config.json')))
|
||||||
|
|
||||||
var statusText = ""
|
|
||||||
|
|
||||||
var bnchName = "Beta"
|
var bnchName = "Beta"
|
||||||
var bnchSub = "beta."
|
var bnchSub = "beta."
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ var pfp
|
||||||
var music = new Audio("/snds/Lotus Waters.ogg")
|
var music = new Audio("/snds/Lotus Waters.ogg")
|
||||||
music.preservesPitch = false
|
music.preservesPitch = false
|
||||||
music.loop = true
|
music.loop = true
|
||||||
music.playbackRate = 0
|
// music.playbackRate = 0
|
||||||
// var whipLash = new Audio("/snds/johnny-test-whip-crack.mp3")
|
// var whipLash = new Audio("/snds/johnny-test-whip-crack.mp3")
|
||||||
// whipLash.volume = 0.25
|
// whipLash.volume = 0.25
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ function spinLoop() {
|
||||||
spinWaiting = false
|
spinWaiting = false
|
||||||
if (spinning) {
|
if (spinning) {
|
||||||
music.volume = 0.5
|
music.volume = 0.5
|
||||||
music.playbackRate = lerp(music.playbackRate, 1, 1/spinSpeed)
|
// music.playbackRate = lerp(music.playbackRate, 1, 1/spinSpeed)
|
||||||
if (spins > 1) {
|
if (spins > 1) {
|
||||||
document.querySelector(".spinnyCount").style.display = "block"
|
document.querySelector(".spinnyCount").style.display = "block"
|
||||||
document.querySelector(".localSpins").innerHTML = Math.ceil(spins - 1);
|
document.querySelector(".localSpins").innerHTML = Math.ceil(spins - 1);
|
||||||
|
@ -68,7 +68,7 @@ function spinLoop() {
|
||||||
console.log("Spin Sent!")
|
console.log("Spin Sent!")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
music.playbackRate = lerp(music.playbackRate, 0.5, 1/spinSpeed)
|
// music.playbackRate = lerp(music.playbackRate, 0.5, 1/spinSpeed)
|
||||||
music.volume = lerp(music.volume, 0, 1/spinSpeed * 4)
|
music.volume = lerp(music.volume, 0, 1/spinSpeed * 4)
|
||||||
spins = lerp(spins, Math.round(spins), 1 / spinSpeed * 3)
|
spins = lerp(spins, Math.round(spins), 1 / spinSpeed * 3)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue