Skip to content

Commit

Permalink
Document the counterintuitive behaviour of hs.audiodevice objects. Cl…
Browse files Browse the repository at this point in the history
…oses #3559
  • Loading branch information
cmsj committed Dec 10, 2023
1 parent 8e64256 commit d88f3a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/audiodevice/audiodevice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
--- Manipulate the system's audio devices
---
--- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/).
---
--- Note:
--- * Objects created by this module are distinct from each other - if you fetch an audiodevice and set a watcher on it, then fetch the audiodevice again, the watcher will only be visible from the first object and not the second. To avoid losing reference to watchers, you can store the audiodevice objects in a Lua table.

local module = require("hs.libaudiodevice")
module.watcher = require("hs.libaudiodevicewatcher")
Expand Down

0 comments on commit d88f3a9

Please sign in to comment.