20210628 - Upgrade of php fixed the page rendering issue.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:multimedia:pulseaudio_non-default [2016/03/21 01:13 (UTC)]
lonestar [mpg123]
howtos:multimedia:pulseaudio_non-default [2016/05/02 22:34 (UTC)] (current)
linuxrocks123 take out tip since cmake handles it in the better fake pulseaudio
Line 1: Line 1:
-<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> + <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> 
-====== Using Pulseaudio as non-default audio manager ======+====== PulseAudio Rationale ======
  
 With the release of the first beta of what will be version 14.2, PulseAudio has been introduced as default audio server in Slackware Linux. With the release of the first beta of what will be version 14.2, PulseAudio has been introduced as default audio server in Slackware Linux.
Line 21: Line 21:
  
 Before this moment, there was no technical need for introducing PulseAudio as a basic component of the distribution, and linking the audio components directly to ALSA devices gave all the features needed by users without PA's known backsides. Before this moment, there was no technical need for introducing PulseAudio as a basic component of the distribution, and linking the audio components directly to ALSA devices gave all the features needed by users without PA's known backsides.
-====== Goal of this guide ======+ 
 +====== Removing PulseAudio Completely ====== 
 + 
 +It should be noted that, as PulseAudio is now a basic system component, with many applications directly linked to it, the following procedure for removing PulseAudio is unsupported. It did work for me, though. 
 + 
 +In order to remove PulseAudio from your system completely, follow these steps: 
 + 
 +<code> 
 +su 
 +mv /etc/asound.conf /etc/asound.conf.disabled 
 +removepkg pulseaudio 
 +</code> 
 + 
 +However, after you do this, you will find many applications (mplayer etc) no longer work, because they are linked to libpulse.so.0.  This issue is remedied with the following: 
 + 
 +<code> 
 +git clone https://github.com/i-rinat/apulse 
 +cd apulse 
 +mkdir build 
 +cd build 
 +cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. 
 +make 
 +su 
 +mv libpulse* /usr/lib64 #or /usr/lib if you are on a 32-bit machine 
 +</code> 
 + 
 +Now your pulseaudio-linked programs will find a fake libpulse.so.0 that nevertheless provides all the symbols they expect and everything that can use ALSA will use ALSA just like it used to.  Additionally, any program insisting on trying to use the libpulse.so.0 API should theoretically still work as the libpulse.so.0 you have installed is a wrapper to make PulseAudio programs (Skype specifically) work on ALSA-only systems. 
 + 
 +======  Using Pulseaudio as non-default audio manager ====== 
 PulseAudio has become the default audio manager in the distribution, and it is configured for taking ownership of the audio card in the system so that all the components needing access to audio must refer to it.  PulseAudio has become the default audio manager in the distribution, and it is configured for taking ownership of the audio card in the system so that all the components needing access to audio must refer to it. 
  
Line 70: Line 99:
 remove or rename the file ''/etc/xdg/autostart/pulseaudio.desktop''. This will avoid PA being pre-started at each user login to an X11 session. remove or rename the file ''/etc/xdg/autostart/pulseaudio.desktop''. This will avoid PA being pre-started at each user login to an X11 session.
  
-Create a script ''/usr/local/bin/pa-unreg/'' with the following:+Create a script ''/usr/local/bin/pa-unreg'' with the following:
 <code bash>#!/bin/bash <code bash>#!/bin/bash
 if [ "$(pidof pulseaudio)" ] if [ "$(pidof pulseaudio)" ]
Line 104: Line 133:
 <code cmake>cmake \ <code cmake>cmake \
     [...]     [...]
-    -DWITH_PulseAudio=BOOL:OFF +    -DWITH_PulseAudio=FALSE 
-    -DPHONON_PULSESUPPORT=FALSE \+    -DPHONON_PULSESUPPORT=OFF \
     [...]</code>     [...]</code>
  
Line 134: Line 163:
  
 Here is an evolving list of common software and required actions: Here is an evolving list of common software and required actions:
 +
 ==== mpg123 ==== ==== mpg123 ====
 +
 This software has been compiled for using Pulseaudio as default output but you can change this by simply adding an option on command-line: <code> $ mpg123 <...> -o alsa <...> file.mp3</code> This software has been compiled for using Pulseaudio as default output but you can change this by simply adding an option on command-line: <code> $ mpg123 <...> -o alsa <...> file.mp3</code>
  
Line 145: Line 176:
     [...]</code>     [...]</code>
  
 +=== Audacious ===
 +
 +Also Audacious can be configured to use ALSA even if it's been compiled with PA support.
 +
 +In Settings->Audio you can define Output Plugin to ALSA Output.
  
 ====== Sources ====== ====== Sources ======

In Other Languages
QR Code
QR Code howtos:multimedia:pulseaudio_non-default (generated for current page)