On Sun, 13 Dec 2009 05:05:51 +0200 Tanu Kaskinen <[email protected]> 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.
- Vegard V -
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss