mpv/TOOLS/lua/audio-hotplug-test.lua

7 lines
218 B
Lua
Raw Normal View History

mp.observe_property("audio-device-list", "native", function(_, val)
print("Audio device list changed:")
for _, e in ipairs(val) do
print(" - '" .. e.name .. "' (" .. e.description .. ")")
end
end)