Many thanks!<br><br>I change the default card with asoundconf but in Kubuntu 9.10 goes with Pulseaudio, that's why I ask you.<br><br>Thanks<br><br><div class="gmail_quote">2009/11/14 Colin Guthrie <span dir="ltr"><<a href="mailto:gmane@colin.guthr.ie">gmane@colin.guthr.ie</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">'Twas brillig, and mierdatutis mi at 13/11/09 22:05 did gyre and gimble:<div class="im">
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I'm trying to change Pulseaudio default audio card start in a shell script, but I don't know what I must do.<br>
</blockquote>
<br></div>
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.<br>
<br>
So, from the command line you can indeed set the fallback sink via the command:<br>
pacmd set-default-sink index|name<br>
<br>
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.<br>
<br>
Hope that clarifies things.<br>
<br>
Col<br>
<br>
-- <br>
<br>
Colin Guthrie<br>
gmane(at)<a href="http://colin.guthr.ie" target="_blank">colin.guthr.ie</a><br>
<a href="http://colin.guthr.ie/" target="_blank">http://colin.guthr.ie/</a><br>
<br>
Day Job:<br>
Tribalogic Limited [<a href="http://www.tribalogic.net/" target="_blank">http://www.tribalogic.net/</a>]<br>
Open Source:<br>
Mandriva Linux Contributor [<a href="http://www.mandriva.com/" target="_blank">http://www.mandriva.com/</a>]<br>
PulseAudio Hacker [<a href="http://www.pulseaudio.org/" target="_blank">http://www.pulseaudio.org/</a>]<br>
Trac Hacker [<a href="http://trac.edgewall.org/" target="_blank">http://trac.edgewall.org/</a>]<br>
<br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@mail.0pointer.de" target="_blank">pulseaudio-discuss@mail.0pointer.de</a><br>
<a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
</blockquote></div><br>