PulseAudio

From Revolution Linux OpenSource projects

Jump to: navigation, search

Contents

IMPORTANT UPDATE!

Adobe just released the *final* FlashPlayer 9.

Get it now at: http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash

To find out which version you're using, use the "strings" command:

[jmdault@localhost plugins]$ strings libflashplayer.so |grep "LNX"
LNX 9,0,21,78
  • Version 9,0,21,55 is the old Beta 1
  • Version 9,0,21,78 is Beta2
  • Version 9,0,31,0 is the final

Our RPM needs either Beta2 or the final version.

PulseAudio and Flash

From http://labs.adobe.com/wiki/index.php/Flash_Player:Additional_Interface_Support_for_Linux:

Introduction

Adobe is developing Flash Player 9 for Linux. Given that GNU/Linux, and its many components, is a platform of many choices, Adobe will formally support specific Linux distributions.

Some components change frequently — in particular, audio, secure sockets, and Unicode. To enable Flash Player to adapt to these variations, we are providing default implementations of audio, secure sockets, and Unicode and making an API available for developers to adapt these areas to any particular Linux configuration. Adobe is delivering this support layer as an open-source dynamic library called flashsupport. This library will enable distributions not formally supported by Adobe to ensure that Flash Player functionality is fully preserved on those distributions. We are encouraging the Linux community to experiment with flashsupport to confirm that it meets their needs.

New support for Esound and PulseAudio

This version, designed by Revolution Linux, adds support for Esound and PulseAudio. It also provides automatic detection of the sound system:

  • It first tries to detect PulseAudio by looking for socket files and environment variables:
    • /tmp/pulse-<USER>/native
    • /var/lib/run/pulse/native
    • PULSE_SERVER / PULSE_BINARY variables
  • It then checks for Esound:
    • /tmp/.esd/socket
    • ESPEAKER variable
  • Then if checks for ALSA:
    • /proc/asound
  • Finally, it checks for OSS:
    • /dev/dsp

If everything fails, it falls back to the ALSA driver that's built directly into FlashPlayer 9.

You can force any interface by setting environment variables:

  • FLASH_FORCE_PULSEAUDIO = 1 (or) FLASH_FORCE_ESD / FLASH_FORCE_ALSA / FLASH_FORCE_OSS

You can also get debug information by setting:

  • FLASH_AUDIODEBUG = 1

Finally, to get latency information for the PulseAudio driver:

  • FLASH_PULSEDEBUG = 1

Audio/Video synchronization:

Using PulseAudio, you can now get fully synchronized video and audio output, even on a slow network. I have made all tests using a 11mbps wireless link.

With Esound however, it seems impossible for the moment, as the function that is supposed to get the latency doesn't work via network.

Download

  • Get the source using a subversion client:
svn co https://svn.revolutionlinux.com/MILLE/XTERM/trunk/libflashsupport/src/
  • RPMS for Mandriva 2006 (Mille-Xterm base platform) are available here:
https://svn.revolutionlinux.com/MILLE/RELEASE/mille-xterm/Mandriva/2006/devel/i586/libflashsupport-1.0-2098.i586.rpm
  • Debian packages (thanks to CJ van den Berg):
http://pulseaudio.vdbonline.net/libflashsupport/

Compile / Install from source

Simply do a "make", then "make install" as root.

If you have sudo access, you can do it all in one step with "make sudoinstall".

This will compile and install the libflashplayer.so library in /usr/lib, where the Flash Player expects it.

Then, restart your web browser and check Youtube.com or your favorite Flash site.

Required audio libraries

The libflashplayer.so will dynamically try to load the correct audio libraries:

  • /usr/lib/libpulse-simple.so.0 for PulseAudio support
  • /usr/lib/libesd.so.0 for Esound support

Comments / Bugs / Questions

You can contact jmdault@revolutionlinux.com for any questions of or comments.

Please note that we will not give *free* support, however commercial support is available for corporate customers. Contact Revolution Linux at http://www.revolutionlinux.com

Retrieved from "/PulseAudio"
Personal tools