From alsa-devel-owner@alsa.jcu.cz  Sat Oct  3 17:59:51 1998
Received: from screech.cs.alfred.edu (IDENT:root@screech.cs.alfred.edu [149.84.148.201])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id RAA11413
	for <alsa-devel@jcu.cz>; Sat, 3 Oct 1998 17:59:22 +0200
Received: from Screech (lansdoct@Screech [149.84.148.201])
	by screech.cs.alfred.edu (8.8.7/8.8.7) with ESMTP id LAA08398;
	Sat, 3 Oct 1998 11:59:25 -0400
Date: Sat, 3 Oct 1998 11:59:25 -0400 (EDT)
From: "Christopher T. Lansdown" <lansdoct@screech.cs.alfred.edu>
To: Brion Vibber <brion@pobox.com>
cc: alsa-devel@jcu.cz
Subject: Re: XAmixer
In-Reply-To: <Pine.LNX.4.03.9810022350290.18073-100000@rdaneel.dyn.ml.org>
Message-ID: <Pine.LNX.4.05.9810031155270.2117-100000@screech.cs.alfred.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

> 
> >From asound.h of alsa-driver-0.2.0-pre8:
> #define SND_MIXER_ID_MONO               "Mono"
> #define SND_MIXER_ID_MONO1              "Mono 1"
> #define SND_MIXER_ID_MONO2              "Mono 2"
	Thanks.  I'll add them.
> In the mean time it's a simple matter to invert the value... ie if you
> have a range of 0-255 and have 64 you set the widget to 255-64=191. Then
> when the widget gives you 200 you send 255-200=55 to the card.
	That's a good idea.  I never thought of that. :-)  Thanks.

> As far as modularity... It's definately improved a bit having the channel 
> info in its own struct, but one would still (in what I just downloaded 
> at least) need to go through the entire source and add sections for:
> checking for the presence of the channel, reading the volume, creating the
> volume widget, and setting the volume for each new channel.
	What you describe would work, in a purely functional sense, but it
would be asthetically lacking.  You'd have no control over the labels, and
using pixmaps is completel out of the question (unless you want to do
pattern macthing on the names, but that has it's own problems).  At the
moment, adding a channel is very simple.  If you have a decent editor,
it's mostly mousework,  and not much of that.  The way I have it allows me
to control what the labels for the channel labels are, and to eventually
use pixmaps, as well.  Can you see a way around this?
	-Chris


