ralphy wrote:
> I've been using the 'Alsa Mixer applet'
> (https://github.com/cowboy-coders/AMixer) on squeezeplay and thought it
> would be great to have it on my wandboard.
>
> But it doesn't work on jivelite. The issue appears to be something with
> the pack/unpack implementation being used in the _parseAmixerOutput
> function.
>
> I went through the list of lua language differences in post 149 and
> didn't find any obvious issues.
>
> If I could get it to work I'd modify it to use the installer.
>
> Ideas?
>
> Also, could you be more specific on how to tell if the applet is running
> on jivelite vs squeezeplay?
>
> Thanks,
Not looked at what is does, but does this help:
Code:
--------------------
--- a/AMixerApplet.lua
+++ b/AMixerApplet.lua
@@ -508,7 +508,7 @@ end
function pack(...)
- return arg
+ return {...}
end
function string:split(sSeparator, nMax, bRegexp)
@@ -568,7 +568,7 @@ function _parseAmixerOutput(self, file)
return
end
local r = pack(string.match(tmp, regexp))
- len = table.getn(r)
+ len = #r
if opt and len == 0 then
last = tmp
else
--------------------
http://www.lua.org/manual/5.1/ - there's no getn method to table in the
standard lua syntax.
------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=98156
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix