Add t.audio.mic (boolean) setting to conf.lua

--HG--
branch : androidmic
This commit is contained in:
Miku AuahDark
2019-09-29 12:18:47 +08:00
parent 0d9081ff22
commit 051f1e9830
2 changed files with 22 additions and 5 deletions
+7 -2
View File
@@ -425,6 +425,7 @@ function love.init()
},
audio = {
mixwithsystem = true, -- Only relevant for Android / iOS.
mic = false, -- Only relevant for Android.
},
console = false, -- Only relevant for windows.
identity = false,
@@ -469,8 +470,12 @@ function love.init()
love._setGammaCorrect(c.gammacorrect)
end
if love._setAudioMixWithSystem and c.audio then
love._setAudioMixWithSystem(c.audio.mixwithsystem)
if love._setAudioMixWithSystem then
love._setAudioMixWithSystem(c.audio and c.audio.mixwithsystem)
end
if love._requestRecordingPermission then
love._requestRecordingPermission(c.audio and c.audio.mic)
end
-- Gets desired modules.