Default value for scallback is nil

This commit is contained in:
Maxim Gordeev 2016-02-25 07:54:50 +03:00
parent e52c38e0f9
commit 624a0c9f02
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ local function worker(args)
local args = args or {} local args = args or {}
local timeout = args.timeout or 5 local timeout = args.timeout or 5
local settings = args.settings or function() end local settings = args.settings or function() end
local scallback = args.scallback or function() end local scallback = args.scallback or nil
pulseaudio.sink = args.sink or 0 -- user defined or first one pulseaudio.sink = args.sink or 0 -- user defined or first one
pulseaudio.cmd = args.cmd or string.format("pacmd list-sinks | sed -n -e '/base volume/d' -e '/index: %d/p' -e '/volume:/p' -e '/muted:/p' | sed -n -e '/index: %d/,+2p'", pulseaudio.cmd = args.cmd or string.format("pacmd list-sinks | sed -n -e '/base volume/d' -e '/index: %d/p' -e '/volume:/p' -e '/muted:/p' | sed -n -e '/index: %d/,+2p'",