[pulseaudio-discuss] ALSA-emulation for multiple devices

Ng Oon-Ee ngoonee at gmail.com
Sun Dec 13 03:34:31 PST 2009


On Sun, 2009-12-13 at 11:56 +0100, Vegard Vesterheim wrote:
> On Sun, 13 Dec 2009 05:05:51 +0200 Tanu Kaskinen <tanuk at iki.fi> wrote:
> 
> > Assuming you already know how to create the usual "pulse" alsa device,
> > adding more devices is easy. In .asoundrc, instead of writing just
> >
> > pcm.pulse {
> >     type pulse
> > }
> >
> > you can specify the sink or source too too:
> >
> > pcm.speakers {
> >     type pulse
> >     device alsa_output.foobar42
> > }
> 
> That makes sense. The last missing piece of the puzzle, is how to find
> the value for the device parameter.
> 
> Apparently this can be found using: 
> 
> $ pacmd list-sinks | grep name:
> 
> So now my my ~/.asoundrc looks like this:
> ----- snip - snip -------------------------------------------------
> pcm.pulse { 
>           type pulse 
> }
> ctl.pulse { 
>           type pulse
> }
> pcm.pulseheadset { 
>           type pulse 
>           device "alsa_output.usb-Plantronics_Plantronics_Headset_00050-0504044410003-V060000D-00.analog-stereo"
> }
> ctl.pulseheadset { 
>           type pulse 
>           device "alsa_output.usb-Plantronics_Plantronics_Headset_00050-0504044410003-V060000D-00.analog-stereo"
> }
> ----- snip - snip -------------------------------------------------
> 
> Now the commands:
> 
>   aplay -D pulseheadset /usr/share/sounds/alsa/Front_Center.wav 
>   aplay -D pulse /usr/share/sounds/alsa/Front_Center.wav 
> 
> works as expected.

Looks good. Wouldn't this work for skype as well? Though AFAIK currently
it doesn't even give the option to use alsa if pulse is running.




More information about the pulseaudio-discuss mailing list