
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.
#Java audiodevice volume full#

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


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.
#Java audiodevice volume code#
This module is based primarily on code from the previous incarnation of Mjolnir by Steven Degutis. Public void setStreamVolume(int streamType, int index, int flags, String callingPackage) else if ((device & AudioSystem.Hammerspoon docs: hs.audiodevice docs » hs.audiodevice 主要文件:frameworks/base/services/core/java/com/android/server/audio/AudioService.java
