mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Add t.audio.mic (boolean) setting to conf.lua
--HG-- branch : androidmic
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user