On Sat, Dec 27, 2014 at 02:56:46PM -0600, Rob Landley wrote: > On 07/29/14 17:15, Bradley Conroy wrote: > > /* mix.c - A very basic mixer. > > * > > * Copyright 2014 Brad Conroy, dedicated to the Public Domain. > > * > > I redid mix.c because it segfaulted when I tried it. It still doesn't _work_ > for me, but neither does aumix or the xfce volume control knob on this > netbook. (I have to pull up pavucontrol, go to tab #3 "output devices", <snip> > I'm reluctant to promote this without being able to test it, but it's making > the syscall (which is returning success for me even though it didn't DO > anything, thank you ubuntu 12.04). If anybody with appropriate hardware > could test this, I'd appreciate it.
I suspect that it's not working for you because of pulseaudio. I don't have the cleaned up version since that hasn't been pushed out yet, but the original one works here (HDA sound, alsa+snd-mixer-oss): mix -d vol -l 100 -r 100 #maxes mix -d vol -l 0 -r 0 #mutes Push the changes and I'll test. /dev/mixer is normal, but if you have 2+ audio cards or OSS4 things are different (not sure if OSS4 would work with this, though). -c seems to be a better choice than -d, yes. Useful one-liner: for c in `mix`; do mix -c $c; done (That corresponds to the default behavior of some command-line mixers.) Thanks, Isaac Dunham _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
