RE: [GnomeMeeting-list] Select custom alsa pcm device?



> -----Original Message-----
> From: gnomemeeting-list-bounces gnome org 
> [mailto:gnomemeeting-list-bounces gnome org] On Behalf Of 
> Gilles Schintgen
> Sent: Monday, 1 May 2006 5:51 PM
> To: gnomemeeting-list gnome org
> Subject: Re: [GnomeMeeting-list] Select custom alsa pcm device?
> 
> > Not sure how we could have a mix of a combo box and a drop 
> down list.
> The only difference would be that the widget's value is 
> editable (like the URL 
> entry box in web browsers). The user could still choose from 
> the proposed 
> values (default, VIA 8237), but could also override these 
> settings if he 
> knows about a custom pcm device that he'd like to use.
> 
> I don't know anything about coding with GTK, but wouldn't 
> this be quite a 
> trivial change? It would make ekiga so much better. And even 
> usable ;-)

At the moment, this would not be supported by pwlib, as it only supports the
"default" pcm and plughw:<card> like pcms (visible in the UI as Default
resp. <Card Name>).

I have attached a patch which adds support for this. It also changes the
device definitions from "plughw:<card>" to "default:<card>" which is
supported since alsa 1.0.8 (and falls back otherwise), which gives dmix
support for all cards.

This patch is in no way ideal, as there is no interface for applications to
add an additional pcm definition to the list of available PCMs, if you want
some additional pcm, you have to put these in a config file under
~/.pwlib_config/, an example is attached. The definition is checked for
validity before being added to the device list.

For this patch to be really usefull, there needs to be an interface in the
PSoundChannel class to add pcms. This may be useful for other descendants of
PSoundChannel also, there were for example requests for additional OSS
devices which were not detected automatically, or there may be other Plugins
in future, where autodetection is not really possible.

This patch has not been largely tested, and may break everything.
Unfortunately I have only an ssh and vnc connection to my main development
box.

Greetings,

Lurchi

Attachment: ekiga.ini
Description: Binary data

Attachment: pwlib_more_pcms.diff
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]