Difference between revisions of "love.system.hasBackgroundMusic"

(Created page)
 
m (updated version number from 0.11.0 to 11.0)
 
Line 1: Line 1:
{{newin|[[0.11.0]]|110|type=function}}
+
{{newin|[[11.0]]|110|type=function}}
 
Gets whether another application on the system is playing music in the background.
 
Gets whether another application on the system is playing music in the background.
  

Latest revision as of 11:45, 2 April 2018

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