love.audio.setPlaybackDevice

Available since LÖVE 12.0
This function is not supported in earlier versions.


Change the audio device to specified device. Also used to reconnect audio device in case of device disconnection.

Function

Synopsis

success, message = love.audio.setPlaybackDevice( name )

Arguments

string name (nil)
Fully qualified device name, or nil to use system default.

Returns

boolean success
Is the function succeeded?
string message
Error message on failure (nil on succesful).

Notes

OpenAL-soft 1.22.0 or later is required for this to function. Officially LOVE-distributed binaries (with exception of iOS) ships with latest version of OpenAL-soft.

See Also


Other Languages