On 12/27/14 16:20, Isaac Dunham wrote:
> 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.

Ah, pushed. Sorry about that.

> /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).

Would the multiple audio cards show up as channels, or as dev nodes? (I
can't say 'devices' because the OSS terminology and the traditional unix
terminology _both_ use that. Grrr.)

> -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.)

That's why I didn't make mix output the volume by default: scriptability.

(The Unix Philosophy by Mike Gancarz should be required reading. Alas,
we're all self-taught...)

> Thanks,
> Isaac Dunham

Rob
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to