summaryrefslogtreecommitdiffstats
path: root/TOOLS/lua/audio-hotplug-test.lua
blob: 8dedc68cbe12cd948a406733fb38ee7e595af69e (plain)
1
2
3
4
5
6
7
8
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)