love.audiodisconnected
Available since LÖVE 12.0 |
This callback is not supported in earlier versions. |
Called when the active audio device is disconnected (e.g. physically unplugging headphones).
All audio are stopped and loses their playback position when this callback is called.
Function
Synopsis
reconnect = love.audiodisconnected( sources )
Arguments
Returns
boolean reconnect
- Should LÖVE try re-connect to default device?
Notes
If love.audio.setPlaybackDevice is called inside the callback, false must be returned to prevent LOVE from re-connecting the device twice.
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