

False if it's not muted, nil if it does not support mutingĮxtensions/audiodevice/libaudiodevice.m line 563 True if the audio device's Input is muted.Get the Input mutedness state of the audio device Hs.audiodevice:inputMuted() -> bool or nil Before calling this method, you should check the result of hs.audiodevice:supportsOutputDataSources()Įxtensions/audiodevice/libaudiodevice.m line 1409.Gets the current output data source of an audio device Hs.audiodevice:currentOutputDataSource() -> hs.audiodevice.dataSource object or nil Before calling this method, you should check the result of hs.audiodevice:supportsInputDataSources()Įxtensions/audiodevice/libaudiodevice.m line 1372.An hs.audiodevice.dataSource object, or nil if an error occurred.Gets the current input data source of an audio device Hs.audiodevice:currentInputDataSource() -> hs.audiodevice.dataSource object or nil For devices that are both input and output devices, see :inputVolume() and :outputVolume()Įxtensions/audiodevice/libaudiodevice.m line 1067 This method will inspect the device to determine if it is an input or output device, and return the appropriate volume.The return value will be a floating point number.
#Audiodevice value full
A number between 0.0 and 1.0, representing the balance (0.0 for full left, 1.0 for full right, 0.5 for center), or nil if the audio device does not support balance.Get the current left/right balance of this audio device Hs.audiodevice:balance() -> number or nil Gets all of the output data sources of an audio deviceĮxtensions/audiodevice/libaudiodevice.m line 1446 Hs.audiodevice:allOutputDataSources() -> hs.audiodevice.dataSource or nil A list of hs.audiodevice.dataSource objects, or nil if an error occurredĮxtensions/audiodevice/libaudiodevice.m line 1499.Gets all of the input data sources of an audio device Hs.audiodevice:allInputDataSources() -> hs.audiodevice.dataSource or nil name - A string containing the UID of an audio output device to search forĮxtensions/audiodevice/a line 102.Hs.audiodevice.findOutputByUID(uid) -> device or nil name - A string containing the name of an audio output device to search forĮxtensions/audiodevice/a line 76.Hs.audiodevice.findOutputByName(name) -> device or nil name - A string containing the UID of an audio input device to search forĮxtensions/audiodevice/a line 115.

Hs.audiodevice.findInputByUID(uid) -> device or nil
#Audiodevice value code
This module is based primarily on code from the previous incarnation of Mjolnir by Steven Degutis. Hammerspoon docs: hs.audiodevice docs » hs.audiodevice
