diff options
Diffstat (limited to 'TOOLS/lua/audio-hotplug-test.lua')
-rw-r--r-- | TOOLS/lua/audio-hotplug-test.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/TOOLS/lua/audio-hotplug-test.lua b/TOOLS/lua/audio-hotplug-test.lua new file mode 100644 index 0000000..8dedc68 --- /dev/null +++ b/TOOLS/lua/audio-hotplug-test.lua @@ -0,0 +1,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) |