PulseAudio

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(how to make pulseaudio available on the network)
(-cat)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''PulseAudio''' ([http://www.pulseaudio.org/ homepage]) is the sound server used by OpenMoko to mix output from several applications as needed.
+
: I this page still current ? I think that pulseaudio was dropped from 2008.8 distribution, for performance reason. But installing openmoko-mediaplayer2 will pull it back from the repositories. [[User:MinhHaDuong|MinhHaDuong]] 13:08, 18 September 2008 (UTC)
 +
 
 +
'''PulseAudio''' ([http://www.pulseaudio.org/ homepage]) is the sound server used by Openmoko to mix output from several applications as needed.
  
 
[[neod]] uses PulseAudio to play the samples "startup" and "touchscreen".  
 
[[neod]] uses PulseAudio to play the samples "startup" and "touchscreen".  
Line 9: Line 11:
 
The sound server can easily be made available (and discoverable, thanks to [http://www.avahi.org Avahi]) in the local network, effectively turning the Neo1973 into an overqualified USB sound card (see also: http://www.pulseaudio.org/wiki/PerfectSetup):
 
The sound server can easily be made available (and discoverable, thanks to [http://www.avahi.org Avahi]) in the local network, effectively turning the Neo1973 into an overqualified USB sound card (see also: http://www.pulseaudio.org/wiki/PerfectSetup):
  
  ipkg install pulseaudio-module-zeroconf-publish pulseaudio-module-native-protocol-tcp
+
  opkg install pulseaudio-module-zeroconf-publish pulseaudio-module-native-protocol-tcp
 
  echo "load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16" >> /etc/pulse/session
 
  echo "load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16" >> /etc/pulse/session
 
  echo "load-module module-zeroconf-publish" >> /etc/pulse/session
 
  echo "load-module module-zeroconf-publish" >> /etc/pulse/session
Line 16: Line 18:
 
Now on a Desktop with PulseAudio properly set up, the padevchooser applet lists the Neo's hostname as audio sink as soon as it is connected via USB.
 
Now on a Desktop with PulseAudio properly set up, the padevchooser applet lists the Neo's hostname as audio sink as soon as it is connected via USB.
  
[[Category:Software ]]
+
== Pulseaudio takes 10% cpu time ==
[[Category:Application Developer]]
+
 
 +
Performance tip: Looking at the active processes with ''top'', if ''pulseaudio'' appears to take 10% cpu time even when doing nothing:
 +
 
 +
opkg install pulseaudio-module-suspend-on-idle
 +
echo "load-module module-suspend-on-idle" >> /etc/pulse/session
 +
/etc/init.d/pulseaudio restart
 +
 
 +
 
 +
[[Category:Audio]]

Latest revision as of 08:50, 19 July 2009

I this page still current ? I think that pulseaudio was dropped from 2008.8 distribution, for performance reason. But installing openmoko-mediaplayer2 will pull it back from the repositories. MinhHaDuong 13:08, 18 September 2008 (UTC)

PulseAudio (homepage) is the sound server used by Openmoko to mix output from several applications as needed.

neod uses PulseAudio to play the samples "startup" and "touchscreen".

The samples are loaded from files and can be changed or disabled at the configuration file /etc/pulse/session.

[edit] Turning the Neo1973 into a USB sound card

The sound server can easily be made available (and discoverable, thanks to Avahi) in the local network, effectively turning the Neo1973 into an overqualified USB sound card (see also: http://www.pulseaudio.org/wiki/PerfectSetup):

opkg install pulseaudio-module-zeroconf-publish pulseaudio-module-native-protocol-tcp
echo "load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16" >> /etc/pulse/session
echo "load-module module-zeroconf-publish" >> /etc/pulse/session
/etc/init.d/pulseaudio restart

Now on a Desktop with PulseAudio properly set up, the padevchooser applet lists the Neo's hostname as audio sink as soon as it is connected via USB.

[edit] Pulseaudio takes 10% cpu time

Performance tip: Looking at the active processes with top, if pulseaudio appears to take 10% cpu time even when doing nothing:

opkg install pulseaudio-module-suspend-on-idle
echo "load-module module-suspend-on-idle" >> /etc/pulse/session
/etc/init.d/pulseaudio restart
Personal tools

PulseAudio (homepage) is the sound server used by OpenMoko to mix output from several applications as needed.

neod uses PulseAudio to play the samples "startup" and "touchscreen".

The samples are loaded from files and can be changed or disabled at the configuration file /etc/pulse/session.

Turning the Neo1973 into a USB sound card

The sound server can easily be made available (and discoverable, thanks to Avahi) in the local network, effectively turning the Neo1973 into an overqualified USB sound card (see also: http://www.pulseaudio.org/wiki/PerfectSetup):

ipkg install pulseaudio-module-zeroconf-publish pulseaudio-module-native-protocol-tcp
echo "load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16" >> /etc/pulse/session
echo "load-module module-zeroconf-publish" >> /etc/pulse/session
/etc/init.d/pulseaudio restart

Now on a Desktop with PulseAudio properly set up, the padevchooser applet lists the Neo's hostname as audio sink as soon as it is connected via USB.