From alsa-devel-owner@alsa.jcu.cz  Sat Oct  3 18:16:37 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 SAA12807;
	Sat, 3 Oct 1998 18:16:33 +0200
Received: from Screech (lansdoct@Screech [149.84.148.201])
	by screech.cs.alfred.edu (8.8.7/8.8.7) with ESMTP id MAA08660;
	Sat, 3 Oct 1998 12:16:37 -0400
Date: Sat, 3 Oct 1998 12:16:37 -0400 (EDT)
From: "Christopher T. Lansdown" <lansdoct@screech.cs.alfred.edu>
To: Jaroslav Kysela <perex@jcu.cz>
cc: Brion Vibber <brion@pobox.com>, alsa-devel@jcu.cz
Subject: Re: XAmixer
In-Reply-To: <Pine.LNX.3.96.981003103356.1610C-100000@entry.jcu.cz>
Message-ID: <Pine.LNX.4.05.9810031211500.8496-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

> ...
> int channels, index;
> snd_mixer_channel_info_t info;
> 
> channels = snd_mixer_channels( mixer_handle );
> if ( channel < 0 ) { perror( "channels" ); exit( 1 ); }
> /* track all channels for name and other info */
> for ( index = 0; index < channels; index++ ) {
>   if ( snd_mixer_channel_info( mixer_handle, index, &info ) < 0 ) {
>     perror( "info" );
>     exit( 1 );
>   }
>   printf( "Channel ID: %s\n", info.name );
> }
> ...
> 
	Do the names in SND_MIXER_ID_* match the names in info.name?  Will 
this be reliable?  I.e. will pcm always be pcm, or at least does it have
a shot at it?  I want to be able to figure out what the channels are, so
that I can use my own names\pixmaps.  How reasonable a shot do I have of
the code still working over different releases of the ALSA driver?
	Obviously it would  be better to have a mixer that will
automatically manage all present channels, but I don't want to have to
give up asthetics, either.  Thanks.
	-Chris 


