diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-05 00:10:47 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-05 00:10:47 +0200 |
commit | 4602ca2fa5e8e2e408713f72ae7e4cd14480bc01 (patch) | |
tree | bfbf75b8afd738f5a036737404f3eafe87586c66 /volume.lua | |
parent | af4e85f99d0ac63127f19640ef47d768d7bed7cd (diff) | |
download | vicious-legacy-4602ca2fa5e8e2e408713f72ae7e4cd14480bc01.tar.xz |
Lots of coding style changes
Diffstat (limited to 'volume.lua')
-rw-r--r-- | volume.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -24,13 +24,13 @@ local function worker(format, channel) local mixer = f:read("*all") f:close() - local volume_level = string.match(mixer, "([%d]?[%d]?[%d])%%") + local vol = string.match(mixer, "([%d]?[%d]?[%d])%%") -- If muted return 0 (not "Mute") so we dont break progressbars - if string.find(mixer, "%[off%]") or volume_level == nil then - volume_level = 0 + if string.find(mixer, "%[off%]") or vol == nil then + vol = 0 end - return {volume_level} + return {vol} end -- }}} |