Difference between revisions of "love.audio.getPlaybackDevices"

(Created page with "{{newin|12.0|120|type=function}} Gets a list of playback devices on the system. The first device in the list is the user's default playback device. == Function == === Sy...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|table|devices|The list of connected playback device name as string.}}
+
{{param|table|devices|The list of connected playback device names as strings.}}
  
 
== See Also ==
 
== See Also ==
 
* [[parent::love.audio]]
 
* [[parent::love.audio]]
 +
* [[love.audio.getPlaybackDevice]]
 +
* [[love.audio.setPlaybackDevice]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Gets a list of playback devices on the system.}}
 
{{#set:Description=Gets a list of playback devices on the system.}}

Latest revision as of 16:21, 13 April 2024

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

Gets a list of playback devices on the system.

The first device in the list is the user's default playback device.

Function

Synopsis

devices = love.audio.getPlaybackDevices( )

Arguments

None.

Returns

table devices
The list of connected playback device names as strings.

See Also


Other Languages