Hi Ajay,<br><br>we install the bits for PA (due to dependencies), but disable it. Look at olpc-os-builder; git grep for pulse -- that will show you how we disable it.<br><br>Alsa is always present and in use. When you are using PA, PA connects to alsa and uses it directly. Nomal programs then connect to PA (instead of alsa). PA acts as a broker.<br>
<br>You should read on PA architecture. Lennart Poettering writes pretty well.<br><br>cheers,<br><br><br><br>m<br><br><br><div class="gmail_quote">On Sat, Jun 2, 2012 at 9:05 AM, Ajay Garg <span dir="ltr"><<a href="mailto:ajay@activitycentral.com" target="_blank">ajay@activitycentral.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">FYI.<br><br>Will be helpful for any help in this regard.<br><br><br>Regards,<br>Ajay<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Ajay Garg</b> <span dir="ltr"><<a href="mailto:ajay@activitycentral.com" target="_blank">ajay@activitycentral.com</a>></span><br>
Date: Sat, Jun 2, 2012 at 6:32 PM<br>Subject: Running "pulseaudio" and "alsa" together.<br>To: <a href="mailto:pulseaudio-discuss-request@lists.freedesktop.org" target="_blank">pulseaudio-discuss-request@lists.freedesktop.org</a>, <a href="mailto:alsa-user@lists.sourceforge.net" target="_blank">alsa-user@lists.sourceforge.net</a>, Discussion of the development of and with GStreamer <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>
<br><br>Hi all.<br><br>I have been banging my head for over 5 days now; went through whatever google-literature I could possibly through.<br>But I guess I will have to ask the experts :|<br><br><br>I will list down my queries with the story regarding that query, so as to maintain modularity as far as possible.<br>
<br><br>I have a x86-based Fedora-14 Dell laptop; and a XO-1.<br><br><br>A)<br>On my Dell laptop, the following work seamlessly, and I am able to enjoy the mp3.<br><br>(i) gst-launch filesrc location=/path/to/mp3 ! mad ! alsasink<br>
<br>(ii) gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink<br><br><br>However, on my XO-1, only the following works ::<br><br><br>(i) gst-launch filesrc location=/path/to/mp3 ! mad ! alsasink<br><br>whereas the following shows the "pulsesink" plugin not found error ::<br>
<br>(ii) gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink<br><br><br>I figured out that the package "gstreamer-plugins-good" is required for the "pulsesink" plugin.<br><br>So, I did "gst-inspect" on both machines, and "rpm -qa | grep gstreamer-plugins-good" on both the machines.<br>
<br>To my horror, I saw that the package "gstreamer-plugins-good-0.10.26-1.fc14.i686" was installed on both the Dell machine, and the XO-1, but only the Dell laptop showed the presence of "pulsesink".<br>
<br>Why could this difference be ?<br><br><br><br><br><br><br>B)<br>Anyhow, I copied "libgstpulse.so" from my Dell machine to the XO-1.<br>Thereafter, "pulsesink" could be recognised on the XO-1.<br><br>
However, "gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink" resulted in a sound only on Dell, and not XO-1.<br><br>So, I researched further, and concluded that I needed to install "alsa-plugins-pulseaudio" on the XO-1, so as to set up the pulseaudio server, and have the alsa-device as the "other end of the pulseaudio proxy".<br>
<br>So, I installed the package.<br><br>However, SOUND HAS STOPPED PLAYING COMPLETELY ON THE XO-1 (the only time I hear some sound is during boot-up time).<br><br>If I remove "alsa-plugins-pulseaudio", I can again hear the sound via "alsasink", but not through "pulsesink".<br>
<br>If I re-install "alsa-plugins-pulseaudio", I can not hear sound through "alsasink", nor "pulsesink",<br>(<br> not even after doing the following steps :: <br> <br> pulsesudio --kill<br>
sudo rm -r ~/.pulse<br> sudo rm -r ~/.pulse-cookie<br> pulseaudio --start<br><br> <trying to run the mp3 with sudo previleges.><br>
)<br><br><br>So, what other thing could I possibly do?<br><br><br><br>Will be grateful for a reply.<br><br><br>Thanks and Regards,<br>Ajay<br><br><br>
</div><br>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> <a href="mailto:martin.langhoff@gmail.com" target="_blank">martin.langhoff@gmail.com</a><br> <a href="mailto:martin@laptop.org" target="_blank">martin@laptop.org</a> -- Software Architect - OLPC<br>
- ask interesting questions<br> - don't get distracted with shiny stuff - working code first<br> - <a href="http://wiki.laptop.org/go/User:Martinlanghoff" target="_blank">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>