summaryrefslogtreecommitdiff
path: root/src/lua/stubs/volume.lua
blob: 1549963010266bf08bf96fd36b13d504d00e04a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- Module for interacting with playback volume. The Bluetooth and wired outputs store their current volume separately; this API only allows interacting with the volume of the currently used output device.
-- @module volume

local volume = {}

--- Returns the current volume as a percentage of the current volume limit.
-- @treturn types.Property an integer property
function volume.current_pct() end

--- Returns the current volume in terms of dB from line level.
-- @treturn types.Property an integer property
function volume.current_db() end

return volume