The code related to t.audio.mixwithsystem=true is run before the audio module is loaded. Fixes issue #1430.

This commit is contained in:
Alex Szpakowski
2018-12-26 11:36:23 -04:00
parent f504ace6cd
commit 324a290040
8 changed files with 43 additions and 17 deletions
+4 -4
View File
@@ -468,6 +468,10 @@ function love.init()
love._setGammaCorrect(c.gammacorrect)
end
if love._setAudioMixWithSystem and c.audio then
love._setAudioMixWithSystem(c.audio.mixwithsystem)
end
-- Gets desired modules.
for k,v in ipairs{
"data",
@@ -545,10 +549,6 @@ function love.init()
end
end
if love.audio then
love.audio.setMixWithSystem(c.audio.mixwithsystem)
end
-- Our first timestep, because window creation can take some time
if love.timer then
love.timer.step()