Fixed sound

Closes #17
master
Mark 2022-11-05 17:03:16 -07:00
parent b7a7798611
commit 7f9549f651
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
6 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
return { return {
volume_up = conf_dir .. "assets/sounds/volumeup-click.mp3", volume_up = conf_dir .. "assets/sounds/volumeup.ogg",
volume_down = conf_dir .. "assets/sounds/volumedown-click.mp3" volume_down = conf_dir .. "assets/sounds/volumedown.ogg"
} }

Binary file not shown.

BIN
assets/sounds/volumedown.ogg Executable file

Binary file not shown.

Binary file not shown.

BIN
assets/sounds/volumeup.ogg Executable file

Binary file not shown.

View File

@ -9,7 +9,7 @@ sound.play = function(sound_key)
text = "There is no sound with key " .. sound_key text = "There is no sound with key " .. sound_key
}) })
else else
if (sound.counter > 5) then if (sound.counter > 0) then
return return
end end
sound.counter = sound.counter + 1 sound.counter = sound.counter + 1