[arcade] Bring down music volume further

This commit is contained in:
Max Wofford 2024-06-01 19:21:32 -04:00
parent 0f76494648
commit 362f58ab5c

View file

@ -126,7 +126,7 @@
// audio stuff
const showMusic = new Howl({
src: ['https://cloud-akjvxw4d0-hack-club-bot.vercel.app/0indigo_park_ost_-_airplayn___mollie_s_landing_pad____vmy-mxohsuy__audio.mp4'],
volume: 0.5,
// volume: 0.01,
loop: true,
rate: 0.5
})
@ -135,9 +135,10 @@
muted = !muted
if (muted) {
document.querySelector('.sound-button').textContent = 'Want sound?'
showMusic.stop()
Howler.volume(0)
} else if (!muted) {
document.querySelector('.sound-button').textContent = 'Mute sound'
Howler.volume(0.1)
if (firstPlay) {
// strange fade-in effect where the pitch shifts up like a record player
showMusic.fade(0, 1, 1000);