[pulseaudio-discuss] how to change default sound card using a command line ?
mierdatutis mi
mmm286 at gmail.com
Sat Nov 14 03:27:59 PST 2009
Many thanks!
I change the default card with asoundconf but in Kubuntu 9.10 goes with
Pulseaudio, that's why I ask you.
Thanks
2009/11/14 Colin Guthrie <gmane at colin.guthr.ie>
> 'Twas brillig, and mierdatutis mi at 13/11/09 22:05 did gyre and gimble:
>
> Hi,
>>
>> I'm trying to change Pulseaudio default audio card start in a shell
>> script, but I don't know what I must do.
>>
>
> There is not really such a thing as a "default" audio card in PA. The term
> we use is usually "fallback" as this more accurately represents what it
> means. PA remembers each application's preferred device. Thus if you play
> something in e.g. mplayer and we've never seen an mplayer stream before, we
> will use the "fallback" device and then save that choice in a little
> database. The next time mplayer tries to play something, we first look to
> see if we've got a preferred device for mplayer and if so, we use it. In
> this second case the "fallback" device is not consulted.
>
> So, from the command line you can indeed set the fallback sink via the
> command:
> pacmd set-default-sink index|name
>
> But this will only really change the "fallback", e.g. all apps that have
> played before will continue using that device. If you want to change these
> previously stored preferences, the only tool that supports that currently is
> the gnome-volume-control. pavucontol does not update the individual
> application preferences either.
>
> Hope that clarifies things.
>
> Col
>
> --
>
> Colin Guthrie
> gmane(at)colin.guthr.ie
> http://colin.guthr.ie/
>
> Day Job:
> Tribalogic Limited [http://www.tribalogic.net/]
> Open Source:
> Mandriva Linux Contributor [http://www.mandriva.com/]
> PulseAudio Hacker [http://www.pulseaudio.org/]
> Trac Hacker [http://trac.edgewall.org/]
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at mail.0pointer.de
> https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20091114/fce2df9c/attachment.htm>
More information about the pulseaudio-discuss
mailing list