love.system.hasBackgroundMusic
Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Gets whether another application on the system is playing music in the background.
Currently this is implemented on iOS and Android, and will always return false on other operating systems. The t.audio.mixwithsystem
flag in love.conf can be used to configure whether background audio / music from other apps should play while LÖVE is open.
Function
Synopsis
backgroundmusic = love.system.hasBackgroundMusic( )
Arguments
None.
Returns
boolean backgroundmusic
- True if the user is playing music in the background via another app, false otherwise.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info