Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
/ DDLC-LOVE Public archive

Commit

Permalink
Update audio.lua
Browse files Browse the repository at this point in the history
Former-commit-id: 720486e
  • Loading branch information
LukeeGD committed Jul 2, 2019
1 parent 750cd81 commit f8b2d9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions game/loader/audio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ function audioUpdate(audiox, forceload) --audio changes
end

audio_bgm:setLooping(false)
if sfxp then
sfxp:setVolume((settings.sfxvol/100)*(settings.masvol/100))
end
game_setvolume()
audio_bgm:play()
end
end
Expand All @@ -52,7 +50,9 @@ function sfxplay(sfx) --sfx stuff
if sfx ~= '' then
sfxp = love.audio.newSource('assets/audio/sfx/'..sfx..audio_ext, 'static')
end
game_setvolume()
if sfxp then
sfxp:setVolume((settings.sfxvol/100)*(settings.masvol/100))
end
sfxp:play()
end
end

0 comments on commit f8b2d9a

Please sign in to comment.