Hi Ajay, 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.
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. You should read on PA architecture. Lennart Poettering writes pretty well. cheers, m On Sat, Jun 2, 2012 at 9:05 AM, Ajay Garg <[email protected]> wrote: > FYI. > > Will be helpful for any help in this regard. > > > Regards, > Ajay > > ---------- Forwarded message ---------- > From: Ajay Garg <[email protected]> > Date: Sat, Jun 2, 2012 at 6:32 PM > Subject: Running "pulseaudio" and "alsa" together. > To: [email protected], > [email protected], Discussion of the development of and > with GStreamer <[email protected]> > > > Hi all. > > I have been banging my head for over 5 days now; went through whatever > google-literature I could possibly through. > But I guess I will have to ask the experts :| > > > I will list down my queries with the story regarding that query, so as to > maintain modularity as far as possible. > > > I have a x86-based Fedora-14 Dell laptop; and a XO-1. > > > A) > On my Dell laptop, the following work seamlessly, and I am able to enjoy > the mp3. > > (i) gst-launch filesrc location=/path/to/mp3 ! mad ! alsasink > > (ii) gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink > > > However, on my XO-1, only the following works :: > > > (i) gst-launch filesrc location=/path/to/mp3 ! mad ! alsasink > > whereas the following shows the "pulsesink" plugin not found error :: > > (ii) gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink > > > I figured out that the package "gstreamer-plugins-good" is required for > the "pulsesink" plugin. > > So, I did "gst-inspect" on both machines, and "rpm -qa | grep > gstreamer-plugins-good" on both the machines. > > 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". > > Why could this difference be ? > > > > > > > B) > Anyhow, I copied "libgstpulse.so" from my Dell machine to the XO-1. > Thereafter, "pulsesink" could be recognised on the XO-1. > > However, "gst-launch filesrc location=/path/to/mp3 ! mad ! pulsesink" > resulted in a sound only on Dell, and not XO-1. > > 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". > > So, I installed the package. > > However, SOUND HAS STOPPED PLAYING COMPLETELY ON THE XO-1 (the only time I > hear some sound is during boot-up time). > > If I remove "alsa-plugins-pulseaudio", I can again hear the sound via > "alsasink", but not through "pulsesink". > > If I re-install "alsa-plugins-pulseaudio", I can not hear sound through > "alsasink", nor "pulsesink", > ( > not even after doing the following steps :: > > pulsesudio --kill > sudo rm -r ~/.pulse > sudo rm -r ~/.pulse-cookie > pulseaudio --start > > <trying to run the mp3 with sudo previleges.> > ) > > > So, what other thing could I possibly do? > > > > Will be grateful for a reply. > > > Thanks and Regards, > Ajay > > > > > _______________________________________________ > Sugar-devel mailing list > [email protected] > http://lists.sugarlabs.org/listinfo/sugar-devel > > -- [email protected] [email protected] -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff
_______________________________________________ Devel mailing list [email protected] http://lists.laptop.org/listinfo/devel
