mirror of https://github.com/mpv-player/mpv
9 lines
260 B
Lua
9 lines
260 B
Lua
|
local utils = require("mp.utils")
|
||
|
|
||
|
mp.observe_property("audio-device-list", "native", function(name, val)
|
||
|
print("Audio device list changed:")
|
||
|
for index, e in ipairs(val) do
|
||
|
print(" - '" .. e.name .. "' (" .. e.description .. ")")
|
||
|
end
|
||
|
end)
|