
Hs.audiodevice:inputVolume() -> number or nil False if it's not muted, nil if it does not support mutingĮxtensions/audiodevice/libaudiodevice.m line 563
#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 name - A string containing the name of an audio input device to search forĮxtensions/audiodevice/a line 89.Hs.audiodevice.findInputByName(name) -> device or nil uid - A string containing the UID of an audio device to search forĮxtensions/audiodevice/a line 63.Hs.audiodevice.findDeviceByUID(uid) -> device or nil An hs.audiodevice object or nil if the device could not be foundĮxtensions/audiodevice/a line 50.name - A string containing the name of an audio device to search for.Hs.audiodevice.findDeviceByName(name) -> device or nil Get the currently selected audio output deviceĮxtensions/audiodevice/libaudiodevice.m line 253 Get the currently selected audio input deviceĮxtensions/audiodevice/libaudiodevice.m line 284 An hs.audiodevice object, or nil if no suitable device could be foundĮxtensions/audiodevice/libaudiodevice.m line 315.Get the currently selected sound effect device Defaults to falseĮxtensions/audiodevice/a line 15 output - An optional boolean, true to fetch information about the default input device, false for output device.A table of zero or more audio output devices connected to the systemĮxtensions/audiodevice/a line 128įetch various metadata about the current default audio devices.Returns a list of all connected output devices Hs.audiodevice.allOutputDevices() -> hs.audiodevice A table of zero or more audio input devices connected to the systemĮxtensions/audiodevice/a line 141.Returns a list of all connected input devices. Hs.audiodevice.allInputDevices() -> audio A table of zero or more audio devices connected to the systemĮxtensions/audiodevice/libaudiodevice.m line 173.Hs.audiodevice.allDevices() -> hs.audiodevice Methods - API calls which can only be made on an object returned by a constructorĪPI Documentation Functions allDevices Signature.Functions - API calls offered directly by the extension.
#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
