mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
[arcade] Bring down music volume further
This commit is contained in:
parent
0f76494648
commit
362f58ab5c
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue