<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=J876</id>
	<title>Official Kodi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=J876"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/J876"/>
	<updated>2026-06-17T07:05:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Ripping_CDs&amp;diff=126865</id>
		<title>Ripping CDs</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Ripping_CDs&amp;diff=126865"/>
		<updated>2016-12-26T07:49:59Z</updated>

		<summary type="html">&lt;p&gt;J876: /* Audio encoder add-on packages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Music library]] }}&lt;br /&gt;
{{to do}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;{{kodi}} has integrated Audio-CD (CDDA) ripping functionality. In order to use this feature, first configure the CD ripping settings (to set which encoder quality to use and where to store the files). To Rip the entire CD, highlight the Audio CD from the My Music root listing and choose &#039;&#039;Rip Audio CD&#039;&#039; from the context menu. To rip a single track, enter the Audio CD, highlight the desired track, and choose &#039;&#039;Rip Audio Track&#039;&#039; from the context menu.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{kodi}} will automatically download the album-information (via [http://www.freedb.org freedb.org CDDB]) and update the ID3-tags with the proper information.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
== CD ripping settings ==&lt;br /&gt;
{{main|Settings/Music#Audio CDs}}&lt;br /&gt;
{{#lst:Settings/Music|Audio CDs}}&lt;br /&gt;
&lt;br /&gt;
== Adding audio encoders for Ubuntu ==&lt;br /&gt;
Audio encoders are now binary [[add-ons]], but in [[Ubuntu]] they are not packaged with Kodi. All other official Kodi versions have these add-ons included with the default install. For Ubuntu, they must be installed through apt-get, similar to how [[PVR]] add-ons are installed. In the future this will be something the user can manage from within the Kodi GUI, but for now they must be installed outside of Kodi.&lt;br /&gt;
&lt;br /&gt;
{{Note|If you don&#039;t already have the Team Kodi (team-xbmc) PPA added, then you will need to do so in order to install the audio encoders (see &#039;&#039;&#039;[[HOW-TO:Install Kodi for Linux#Ubuntu|here]]&#039;&#039;&#039;). If you&#039;re not sure, you probably already have it installed, as that is how you normally install Kodi in the first place.}}&lt;br /&gt;
&lt;br /&gt;
# Quit Kodi if it is already running and open a terminal window&lt;br /&gt;
# Type in &amp;lt;pre&amp;gt;sudo apt-get update&amp;lt;/pre&amp;gt; and enter your password when prompted&lt;br /&gt;
# Type in &amp;lt;pre&amp;gt;sudo apt-get install PACKAGENAMEHERE&amp;lt;/pre&amp;gt; but replace &#039;&#039;&#039;PACKAGENAMEHERE&#039;&#039;&#039; with a package name from the table below.&lt;br /&gt;
#: &#039;&#039;example: &amp;lt;code&amp;gt;sudo apt-get install kodi-audioencoder-flac&amp;lt;/code&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The audio encoder add-on should now be installed. If Kodi was already running, restart it to load the add-on.&lt;br /&gt;
&lt;br /&gt;
=== Audio encoder add-on packages ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;ubuntu&amp;quot; /&amp;gt;&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Package name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&amp;lt;code&amp;gt;kodi-audioencoder-vorbis&amp;lt;/code&amp;gt;&#039;&#039;&#039; || audio encoder for [[w:vorbis|vorbis]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&amp;lt;code&amp;gt;kodi-audioencoder-flac&amp;lt;/code&amp;gt;&#039;&#039;&#039; || audio encoder add-on for [[w:FLAC|FLAC]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&amp;lt;code&amp;gt;kodi-audioencoder-lame&amp;lt;/code&amp;gt;&#039;&#039;&#039; || audio encoder for [[w:LAME|MP3 (lame)]]&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&amp;lt;code&amp;gt;kodi-audioencoder-wav&amp;lt;/code&amp;gt;&#039;&#039;&#039; || audio encoder for WAV.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;section end=&amp;quot;ubuntu&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Updated|16}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Music library]]&lt;br /&gt;
[[Category:Manual]]&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122708</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122708"/>
		<updated>2016-04-28T13:31:41Z</updated>

		<summary type="html">&lt;p&gt;J876: /* Removing PulseAudio from Ubuntu - why it may not be such a good idea */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu - why it may not be such a good idea ==&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other installed software&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below will allow users to turn off PulseAudio and use the Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
: the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot the Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to enable PulseAudio again ===&lt;br /&gt;
* Follow the editing steps for either the local user or globally (all users) and instead of&lt;br /&gt;
: using the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in the relevant configuration file, change the line to either:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or alternatively:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned back on.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
This guide was developed from the information obtained by the following resources:&lt;br /&gt;
&lt;br /&gt;
* http://askubuntu.com/questions/8425/how-to-temporarily-disable-pulseaudio&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122707</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122707"/>
		<updated>2016-04-28T13:19:56Z</updated>

		<summary type="html">&lt;p&gt;J876: /* Removing PulseAudio from Ubuntu - why it may not be such a good idea */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu - why it may not be such a good idea ==&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other installed software&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
: the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot the Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to enable PulseAudio again ===&lt;br /&gt;
* Follow the editing steps for either the local user or globally (all users) and instead of&lt;br /&gt;
: using the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in the relevant configuration file, change the line to either:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or alternatively:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned back on.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
This guide was developed from the information obtained by the following resources:&lt;br /&gt;
&lt;br /&gt;
* http://askubuntu.com/questions/8425/how-to-temporarily-disable-pulseaudio&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122688</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122688"/>
		<updated>2016-04-26T05:50:38Z</updated>

		<summary type="html">&lt;p&gt;J876: /* How to enable PulseAudio again */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu - why it may not be such a good idea ==&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
: the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot the Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to enable PulseAudio again ===&lt;br /&gt;
* Follow the editing steps for either the local user or globally (all users) and instead of&lt;br /&gt;
: using the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in the relevant configuration file, change the line to either:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or alternatively:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned back on.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
This guide was developed from the information obtained by the following resources:&lt;br /&gt;
&lt;br /&gt;
* http://askubuntu.com/questions/8425/how-to-temporarily-disable-pulseaudio&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122687</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122687"/>
		<updated>2016-04-26T03:52:50Z</updated>

		<summary type="html">&lt;p&gt;J876: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu - why it may not be such a good idea ==&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
: the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot the Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to enable PulseAudio again ===&lt;br /&gt;
* Follow the editing steps for either the local user or globally (all users) and instead of&lt;br /&gt;
: using the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in the relevant configuration file, change the line to either:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or alternatively:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned back on.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
This guide was developed from the information obtained by the following resources:&lt;br /&gt;
&lt;br /&gt;
* http://askubuntu.com/questions/8425/how-to-temporarily-disable-pulseaudio&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122686</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122686"/>
		<updated>2016-04-26T03:51:31Z</updated>

		<summary type="html">&lt;p&gt;J876: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu - why it may not be such a good idea ==&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
: the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot the Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== How to enable PulseAudio again ===&lt;br /&gt;
* Follow the editing steps for either the local user or globally (all users) and instead of&lt;br /&gt;
: using the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in the relevant configuration file, change the line to either:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or alternatively:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned back on.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
This guide was developed from the information obtained by the following resources:&lt;br /&gt;
&lt;br /&gt;
* http://askubuntu.com/questions/8425/how-to-temporarily-disable-pulseaudio&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122685</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122685"/>
		<updated>2016-04-26T03:50:41Z</updated>

		<summary type="html">&lt;p&gt;J876: /* Removing PulseAudio from Ubuntu - why it may not be such a good idea */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu - why it may not be such a good idea ==&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
: the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot the Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== How to enable PulseAudio again ===&lt;br /&gt;
* Follow the editing steps for either the local user or globally (all users) and instead of&lt;br /&gt;
: using the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in the relevant configuration file, change the line to either:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or alternatively:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned back on.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
This guide was developed from the information obtained by the following resources:&lt;br /&gt;
&lt;br /&gt;
* http://askubuntu.com/questions/8425/how-to-temporarily-disable-pulseaudio&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=PulseAudio&amp;diff=122684</id>
		<title>PulseAudio</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=PulseAudio&amp;diff=122684"/>
		<updated>2016-04-26T03:42:58Z</updated>

		<summary type="html">&lt;p&gt;J876: /* HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Audio]]|[[Linux audio]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page goes into detail on using PulseAudio on Linux systems. PulseAudio is used when Kodi is installed in a desktop-environment rather than a dedicated/direct boot setup. PulseAudio allows normal video &amp;amp; audio playback in XBMC while at the same time allowing the user to get audio in their browser or other applications. It also allows Kodi playback of video or audio to be paused in order to run a game, Skype or similar. Kodi is set to only use PulseAudio if you have installed it and running.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
In the past users have experienced problems with audio not working within Kodi, because they were running a full-blown Ubuntu desktop environment with PulseAudio installed. This happened because PulseAudio blocked the device Kodi required, and audio playback only worked reliably when using the virtual Pulse device.&lt;br /&gt;
&lt;br /&gt;
Our workaround for those users has been to uninstall PulseAudio which completely broke desktop audio.&lt;br /&gt;
&lt;br /&gt;
For XBMC 13 &#039;Gotham&#039; and later (named Kodi since 14 &#039;Helix&#039;) we wanted this situation to change, so thanks to the new &#039;&#039;&#039;PulseAudio Sink&#039;&#039;&#039; users now can run a normal Ubuntu desktop.&lt;br /&gt;
&lt;br /&gt;
== PulseAudio Output Configuration ==&lt;br /&gt;
PulseAudio will be automatically detected and selected in Kodi when it is running.&lt;br /&gt;
&lt;br /&gt;
PulseAudio can be run in one of two modes these are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Passthrough Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
Used if you want to passthrough (bitstream) AC3, DTS, and EAC3 to an AVR or other device. In order to allow passthrough to work with PulseAudio then it &#039;&#039;&#039;MUST&#039;&#039;&#039; be set to use a 2.0 channel configuration, despite the 2.0 setting this will still allow 5.1 audio from AC3, DTS, and EAC3.&lt;br /&gt;
&lt;br /&gt;
{{Note| PulseAudio does not currently allow TrueHD or DTS-MA passthrough, this is a PulseAudio limitation and not a limitation of the Kodi implementation.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Multichannel Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Used if you want Multichannel PCM out, in this mode you can configure PulseAudio for up to 7.1 channels. In this mode Kodi must decode all audio formats to PCM for passing onto the PulseAudio, this can have the advantage of improve audio/video sync.&lt;br /&gt;
&lt;br /&gt;
{{Note| Audio decoded to PCM and sent through PulseAudio the audio will not likely be &amp;quot;bit perfect&amp;quot;. Where a video has TrueHD 7.1 audio, this can be decoded by Kodi to PCM 7.1, however DTS-HD 7.1 audio can&#039;t be decoded by Kodi, only the embedded DTS Core 5.1 can be decoded to PCM 5.1 audio. Als Pulseaudio will always open the number of channels you have configured. You can stop it doing upmixing (see Known issues), but it will still open all configured channels which makes Dolby Pro Logic II of your AVR not usable.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setting up pavucontrol  ==&lt;br /&gt;
&lt;br /&gt;
=== Passthrough Mode ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Passthrough is always exclusive mode. If you have another application hogging the device, e.g. google chrome or skype or something else, Passthrough won&#039;t work.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| To use passthrough you need to be using &#039;&#039;&#039;2.0&#039;&#039;&#039; channel configuration via &#039;&#039;&#039;pavucontrol&#039;&#039;&#039; (e.g. Digital Stereo (HDMI)}}&lt;br /&gt;
&lt;br /&gt;
In order to activate Passthrough Codecs, just setup pavucontrol, as in the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Passthrough2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Passthrough1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to do this from the command line, issue:&lt;br /&gt;
 &#039;&#039;&#039;pactl set-sink-formats 0 &amp;quot;pcm; ac3-iec61937; dts-iec61937; eac3-iec61937&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;&#039;0&#039;&#039;&#039; is the sink you want to alter.&lt;br /&gt;
You can print all sinks, by using:&lt;br /&gt;
 &#039;&#039;&#039;pactl list sinks&#039;&#039;&#039;&lt;br /&gt;
You can leave out the codecs your AVR does not support, always keep pcm.&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| If you have for example 5.1 flacs or other multichannel files, you can play them as AC3 streams, check the AC3 Transcoding setting.}}&lt;br /&gt;
&lt;br /&gt;
=== Multichannel Mode ===&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| When configuring pulse to use &#039;&#039;&#039;Multichannel configuration&#039;&#039;&#039; passthrough will be disabled}}&lt;br /&gt;
To configure instead Multi channel mode, do the following settings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Lpcm2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt; &#039;&#039;To alternatively configure Multi channel, check this:&#039;&#039;.&lt;br /&gt;
File:Lpcm1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt; The &#039;&#039;Add-on manager&#039;&#039;, displaying four/five options  (explained below).&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example setup in Kodi ===&lt;br /&gt;
{{orangev|&#039;&#039;&#039;GOOD TO KNOW:&#039;&#039;&#039;| Limit sample rate can be set to Fixed - between 48kHz ~ 192kHz or as Optimized and even Best match.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmclpcm.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpaa1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmcpass2.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpass1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
=== Setup Guide ===&lt;br /&gt;
{{orangev|DEVICE ENUMERATION:| Kodi Enumerates Pulseaudio devices as SPDIF when you have &#039;&#039;&#039;Passthrough&#039;&#039;&#039; set. Otherwise its &#039;&#039;&#039;PCM Device&#039;&#039;&#039;. If &#039;&#039;&#039;Passthrough&#039;&#039;&#039; was not configured with pavucontrol - no &#039;&#039;&#039;Passthrough&#039;&#039;&#039; setting within Kodi will be available.}}&lt;br /&gt;
{{bluev|GOOD TO KNOW:|SPDIF has 2 pcm channels but can do virtual 5.1 formats like dts, ac3, eac3.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;NOTICE&#039;&#039;&#039;|The following is meant to act as a guide to get you started, thus you may want to adjust things to suit your own particular set of equipment.}}&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;text-align: center; color: black;&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;5.1&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;AC3 (&#039;&#039;&#039;1&#039;&#039;&#039;)&lt;br /&gt;
! AVR SPDIF&amp;lt;br /&amp;gt;AC3/DTS (&#039;&#039;&#039;2&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;PCM (&#039;&#039;&#039;3&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;No HD Audio (&#039;&#039;&#039;4&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;Decode HD Audio (&#039;&#039;&#039;5&#039;&#039;&#039;)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;PusleAudio Mode&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Output Devices&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Port&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;AC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;EAC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Configuration&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Profile&#039;&#039;&#039;&lt;br /&gt;
|Analog Stereo Output&lt;br /&gt;
|Analog Surround 5.1 Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Surround 5.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Surround 7.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|- &lt;br /&gt;
!Colspan=&amp;quot;9&amp;quot;|Kodi Settings&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Audio Output Device&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Number of channels&#039;&#039;&#039;&lt;br /&gt;
|2.0&lt;br /&gt;
|5.1&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|5.1&lt;br /&gt;
|2.0&lt;br /&gt;
|7.1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled passthrough&#039;&#039;&#039;&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Passthrough output device&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|N/A&lt;br /&gt;
|HDMI&lt;br /&gt;
|N/A&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Dolby Digital (AC3) capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled Dolby Digital transcoding&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;TrueHD capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS-HD capable receiver&#039;&#039;&#039; &lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Dsiabled&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; Where TV can decode 5.1 AC3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; Where AVR only has SPDIF which will support 5.1 AC3 &amp;amp; DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Where AVR can do 5.1 PCM.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Where AVR has HDMI inputs but can&#039;t decode TrueHD or DTS-HD but does support 5.1 Ac3 or DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(5)&#039;&#039;&#039; Where AVR has full decode capabilities including 7.1 PCM.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| You can only have &#039;&#039;&#039;AC3&#039;&#039;&#039;, &#039;&#039;&#039;DTS&#039;&#039;&#039;, &#039;&#039;&#039;EAC3&#039;&#039;&#039; passthrough &#039;&#039;&#039;if your Receiver supports it&#039;&#039;&#039;. Most &#039;&#039;&#039;TV&#039;s&#039;&#039;&#039; only support &#039;&#039;&#039;AC3&#039;&#039;&#039;. If you have a &#039;&#039;&#039;HDMI&#039;&#039;&#039; connection to your TV and &#039;&#039;&#039;from this TV&#039;&#039;&#039; a &#039;&#039;&#039;SPDIF/Optical&#039;&#039;&#039; connection to an &#039;&#039;&#039;AVR&#039;&#039;&#039;, passthrough might not work at all.}}&lt;br /&gt;
&lt;br /&gt;
== Combined Output aka dual audio==&lt;br /&gt;
If you want to output to all your attached devices in parallel, e.g. HDMI out, analog out and USB sound card, it is enough to do as below:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Edit &amp;lt;code&amp;gt;/etc/pulse/default.pa&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;load-module module-combine-sink sink_name=combined&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Step 2: &#039;&#039;&#039;Restart pulseaudio.&lt;br /&gt;
&amp;lt;pre&amp;gt;killall pulseaudio&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi will then pickup the device, it is named &#039;&#039;&#039;combined&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Downside:&#039;&#039;&#039;| The dual audio sink will only output decoded audio, you cannot use it to have one slave doing AC3/DTS and the other PCM. If you use the combined sink for normal music you will realize that direct passthrough output for your movies won&#039;t be working anymore, too. This is a pulseaudio bug, cause the combine sink is not deconstructed fast enough internally while the passthrough opening is always exclusive. It will work however if your passthrough device is not part of the device combination. }}&lt;br /&gt;
&lt;br /&gt;
== Audiophile Pulse User ==&lt;br /&gt;
Pulseaudio resamples everything that does not match the underlaying sink, so if you are an audiophile user, you perhaps want to hear your 96 / 192 khz and 24 bit recordings as exact as possible. Therefore you need to tell pulseaudio to use a better resampler in general and second change the default sample rate to 96 or 192 khz. Pulseaudio does not resample audio, that is already in the correct samplerate. Furthermore you need to take care, that your sink has a wide enough output format.&lt;br /&gt;
&lt;br /&gt;
To do this configuration systemwide (96 khz in that example), change /etc/pulse/daemon.conf to include (please replace already existing lines and also remove the commenting):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default-sample-format = s32le &lt;br /&gt;
default-sample-rate = 96000&lt;br /&gt;
resample-method = speex-float-5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some remark: This will actively make &#039;&#039;&#039;passthrough non working&#039;&#039;&#039;, as we need s16le format for adding ac3 / dts / etc. float to the sink.&lt;br /&gt;
&lt;br /&gt;
The last setting will increase the resample quality from pulse and therefore the CPU load quite a lot. Again: Resampling is only done, when the sink output does not match the data you throw onto it. But as most normal mp3s are in 44.1 khz, you need to take great care when upsampling them. The overwriting of the resample-method is for this use case.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Alternatively:&#039;&#039;&#039;| If you don&#039;t want any resampling outside Kodi, e.g. no resampling done extra by pulse, you need to configure the sink as told above and set Audio Engine to &#039;&#039;&#039;Fixed&#039;&#039;&#039; with the number of channels you configured pulseaudio via pavucontrol and samplerate of &#039;&#039;&#039;96 khz&#039;&#039;&#039; with resample quality high. In that combination Kodi will take care that files are resampled (e.g. 44.1 khz or 48 khz media) in the best possible quality. Already 96 khz files are not touched at all. }}&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
{{FAQ|1=When_would_I_want_Pulseaudio&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=When would I want PulseAudio?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use your Kodi computer mainly as your Desktop when you don&#039;t run XBMC.&lt;br /&gt;
* You want other applications audio like Skype, youtube, browser mail notification in parallel with Kodi.&lt;br /&gt;
* You use Kodi in windowed mode as Desktop player&lt;br /&gt;
* You use Pulseaudio as a network sink to stream Audio to other devices in your living room.&lt;br /&gt;
* Passthrough is nice to have for you, but to be honest - you don&#039;t really need it.&lt;br /&gt;
* Whenever you plugin your Bluetooth headset, Kodi audio will continue over this new device (when Default &#039;PULSE&#039; device is chosen)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=When_would_I_want_ALSA&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=When would I want ALSA?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;ALSA&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use Kodi as your standalone media center.&lt;br /&gt;
* You are highly interested in bitperfect exclusive audio output.&lt;br /&gt;
* DTS-HD, TrueHD is something you use daily and is of high importance.&lt;br /&gt;
* You don&#039;t need other applications that would access audio in parallel.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Why_cant_I_have_both?&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=Why can&#039;t I have both?&lt;br /&gt;
| Answer=&lt;br /&gt;
* &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; might hog your Audio device and you cannot open the &#039;&#039;&#039;ALSA&#039;&#039;&#039; device exclusively, therefore we decided for one or the other.&lt;br /&gt;
* Whenever &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; is running your &#039;&#039;&#039;ALSA&#039;&#039;&#039; device that Kodi chooses, might be busy or even might vanish while you are using Kodi, when system sounds are playing and pulseaudio is trying to access the device again. Out of this reason we also won&#039;t implement a selection box to decide between &#039;&#039;&#039;ALSA&#039;&#039;&#039; and &#039;&#039;&#039;PULSE&#039;&#039;&#039;, because it will actively harm users. Advanced Users can go with the workaround listed beneath.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Forcing_alsa&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=Can I force ALSA even with PulseAudio installed?&lt;br /&gt;
| Answer=&lt;br /&gt;
{{note|But you know that doing so, it will cause problems!}}&lt;br /&gt;
&lt;br /&gt;
Yes, you can - start Kodi from terminal with:&lt;br /&gt;
&amp;lt;pre&amp;gt;AE_SINK=ALSA Kodi &amp;lt;/pre&amp;gt;&lt;br /&gt;
: Be warned as this will interfere with your Desktop sounds and PulseAudio! Consider removing pulseaudio instead.&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
=== Known issues ===&lt;br /&gt;
When your audio is much too fast or crackles a lot or passthrough only produces noise, you might have a broken driver in use. If this is the case, try to add &#039;&#039;tsched=0&#039;&#039; to the udev loading section in /etc/pulse/default.pa to read like:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;load-module module-udev-detect tsched=0&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When Pulseaudio is configured to be multi-channel output, e.g. 5.1 profile from within pavucontrol, 2.0 streams are automatically upmixed, no matter what setting you have chosen in Kodi. This is default pulseaudio server behaviour. You can workaround that by disabling &#039;&#039;enable-remixing&#039;&#039; in /etc/pulse/daemon.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;enable-remixing = no&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Beware: This will also forbid PA to remix e.g. FL,FR, LFE, FC, BL, BR into FL, FR, LFE, FC, SL, SR - which means you might loose your rears if your speaker layout is non standard.&lt;br /&gt;
&lt;br /&gt;
Audio devices are disappearing with pulseaudio 8.0 (Ubuntu 16.04) especially while running kodi and while using &#039;&#039;Adjust Refreshrate to match video&#039;&#039;. This is an issue with the module-switch-on-port-available module and will be fixed with pulseaudio 9.0, the fix sadly won&#039;t probably make it into Ubuntu 16.04. As a workaround please disable that feature by editing /etc/pulse/default.pa and commenting or removing &#039;&#039;load-module module-switch-on-port-available&#039;&#039; and reboot the system.&lt;br /&gt;
&lt;br /&gt;
== HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
====[[PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu|HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu]]====&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{forum link2|[[forum:183436|Linux - Pulseaudio Sink]] Discussion and further information.}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Audio]]&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=PulseAudio&amp;diff=122683</id>
		<title>PulseAudio</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=PulseAudio&amp;diff=122683"/>
		<updated>2016-04-26T03:41:34Z</updated>

		<summary type="html">&lt;p&gt;J876: /* HOW-TO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Audio]]|[[Linux audio]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page goes into detail on using PulseAudio on Linux systems. PulseAudio is used when Kodi is installed in a desktop-environment rather than a dedicated/direct boot setup. PulseAudio allows normal video &amp;amp; audio playback in XBMC while at the same time allowing the user to get audio in their browser or other applications. It also allows Kodi playback of video or audio to be paused in order to run a game, Skype or similar. Kodi is set to only use PulseAudio if you have installed it and running.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
In the past users have experienced problems with audio not working within Kodi, because they were running a full-blown Ubuntu desktop environment with PulseAudio installed. This happened because PulseAudio blocked the device Kodi required, and audio playback only worked reliably when using the virtual Pulse device.&lt;br /&gt;
&lt;br /&gt;
Our workaround for those users has been to uninstall PulseAudio which completely broke desktop audio.&lt;br /&gt;
&lt;br /&gt;
For XBMC 13 &#039;Gotham&#039; and later (named Kodi since 14 &#039;Helix&#039;) we wanted this situation to change, so thanks to the new &#039;&#039;&#039;PulseAudio Sink&#039;&#039;&#039; users now can run a normal Ubuntu desktop.&lt;br /&gt;
&lt;br /&gt;
== PulseAudio Output Configuration ==&lt;br /&gt;
PulseAudio will be automatically detected and selected in Kodi when it is running.&lt;br /&gt;
&lt;br /&gt;
PulseAudio can be run in one of two modes these are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Passthrough Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
Used if you want to passthrough (bitstream) AC3, DTS, and EAC3 to an AVR or other device. In order to allow passthrough to work with PulseAudio then it &#039;&#039;&#039;MUST&#039;&#039;&#039; be set to use a 2.0 channel configuration, despite the 2.0 setting this will still allow 5.1 audio from AC3, DTS, and EAC3.&lt;br /&gt;
&lt;br /&gt;
{{Note| PulseAudio does not currently allow TrueHD or DTS-MA passthrough, this is a PulseAudio limitation and not a limitation of the Kodi implementation.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Multichannel Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Used if you want Multichannel PCM out, in this mode you can configure PulseAudio for up to 7.1 channels. In this mode Kodi must decode all audio formats to PCM for passing onto the PulseAudio, this can have the advantage of improve audio/video sync.&lt;br /&gt;
&lt;br /&gt;
{{Note| Audio decoded to PCM and sent through PulseAudio the audio will not likely be &amp;quot;bit perfect&amp;quot;. Where a video has TrueHD 7.1 audio, this can be decoded by Kodi to PCM 7.1, however DTS-HD 7.1 audio can&#039;t be decoded by Kodi, only the embedded DTS Core 5.1 can be decoded to PCM 5.1 audio. Als Pulseaudio will always open the number of channels you have configured. You can stop it doing upmixing (see Known issues), but it will still open all configured channels which makes Dolby Pro Logic II of your AVR not usable.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setting up pavucontrol  ==&lt;br /&gt;
&lt;br /&gt;
=== Passthrough Mode ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Passthrough is always exclusive mode. If you have another application hogging the device, e.g. google chrome or skype or something else, Passthrough won&#039;t work.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| To use passthrough you need to be using &#039;&#039;&#039;2.0&#039;&#039;&#039; channel configuration via &#039;&#039;&#039;pavucontrol&#039;&#039;&#039; (e.g. Digital Stereo (HDMI)}}&lt;br /&gt;
&lt;br /&gt;
In order to activate Passthrough Codecs, just setup pavucontrol, as in the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Passthrough2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Passthrough1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to do this from the command line, issue:&lt;br /&gt;
 &#039;&#039;&#039;pactl set-sink-formats 0 &amp;quot;pcm; ac3-iec61937; dts-iec61937; eac3-iec61937&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;&#039;0&#039;&#039;&#039; is the sink you want to alter.&lt;br /&gt;
You can print all sinks, by using:&lt;br /&gt;
 &#039;&#039;&#039;pactl list sinks&#039;&#039;&#039;&lt;br /&gt;
You can leave out the codecs your AVR does not support, always keep pcm.&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| If you have for example 5.1 flacs or other multichannel files, you can play them as AC3 streams, check the AC3 Transcoding setting.}}&lt;br /&gt;
&lt;br /&gt;
=== Multichannel Mode ===&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| When configuring pulse to use &#039;&#039;&#039;Multichannel configuration&#039;&#039;&#039; passthrough will be disabled}}&lt;br /&gt;
To configure instead Multi channel mode, do the following settings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Lpcm2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt; &#039;&#039;To alternatively configure Multi channel, check this:&#039;&#039;.&lt;br /&gt;
File:Lpcm1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt; The &#039;&#039;Add-on manager&#039;&#039;, displaying four/five options  (explained below).&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example setup in Kodi ===&lt;br /&gt;
{{orangev|&#039;&#039;&#039;GOOD TO KNOW:&#039;&#039;&#039;| Limit sample rate can be set to Fixed - between 48kHz ~ 192kHz or as Optimized and even Best match.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmclpcm.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpaa1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmcpass2.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpass1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
=== Setup Guide ===&lt;br /&gt;
{{orangev|DEVICE ENUMERATION:| Kodi Enumerates Pulseaudio devices as SPDIF when you have &#039;&#039;&#039;Passthrough&#039;&#039;&#039; set. Otherwise its &#039;&#039;&#039;PCM Device&#039;&#039;&#039;. If &#039;&#039;&#039;Passthrough&#039;&#039;&#039; was not configured with pavucontrol - no &#039;&#039;&#039;Passthrough&#039;&#039;&#039; setting within Kodi will be available.}}&lt;br /&gt;
{{bluev|GOOD TO KNOW:|SPDIF has 2 pcm channels but can do virtual 5.1 formats like dts, ac3, eac3.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;NOTICE&#039;&#039;&#039;|The following is meant to act as a guide to get you started, thus you may want to adjust things to suit your own particular set of equipment.}}&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;text-align: center; color: black;&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;5.1&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;AC3 (&#039;&#039;&#039;1&#039;&#039;&#039;)&lt;br /&gt;
! AVR SPDIF&amp;lt;br /&amp;gt;AC3/DTS (&#039;&#039;&#039;2&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;PCM (&#039;&#039;&#039;3&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;No HD Audio (&#039;&#039;&#039;4&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;Decode HD Audio (&#039;&#039;&#039;5&#039;&#039;&#039;)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;PusleAudio Mode&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Output Devices&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Port&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;AC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;EAC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Configuration&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Profile&#039;&#039;&#039;&lt;br /&gt;
|Analog Stereo Output&lt;br /&gt;
|Analog Surround 5.1 Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Surround 5.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Surround 7.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|- &lt;br /&gt;
!Colspan=&amp;quot;9&amp;quot;|Kodi Settings&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Audio Output Device&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Number of channels&#039;&#039;&#039;&lt;br /&gt;
|2.0&lt;br /&gt;
|5.1&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|5.1&lt;br /&gt;
|2.0&lt;br /&gt;
|7.1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled passthrough&#039;&#039;&#039;&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Passthrough output device&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|N/A&lt;br /&gt;
|HDMI&lt;br /&gt;
|N/A&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Dolby Digital (AC3) capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled Dolby Digital transcoding&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;TrueHD capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS-HD capable receiver&#039;&#039;&#039; &lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Dsiabled&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; Where TV can decode 5.1 AC3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; Where AVR only has SPDIF which will support 5.1 AC3 &amp;amp; DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Where AVR can do 5.1 PCM.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Where AVR has HDMI inputs but can&#039;t decode TrueHD or DTS-HD but does support 5.1 Ac3 or DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(5)&#039;&#039;&#039; Where AVR has full decode capabilities including 7.1 PCM.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| You can only have &#039;&#039;&#039;AC3&#039;&#039;&#039;, &#039;&#039;&#039;DTS&#039;&#039;&#039;, &#039;&#039;&#039;EAC3&#039;&#039;&#039; passthrough &#039;&#039;&#039;if your Receiver supports it&#039;&#039;&#039;. Most &#039;&#039;&#039;TV&#039;s&#039;&#039;&#039; only support &#039;&#039;&#039;AC3&#039;&#039;&#039;. If you have a &#039;&#039;&#039;HDMI&#039;&#039;&#039; connection to your TV and &#039;&#039;&#039;from this TV&#039;&#039;&#039; a &#039;&#039;&#039;SPDIF/Optical&#039;&#039;&#039; connection to an &#039;&#039;&#039;AVR&#039;&#039;&#039;, passthrough might not work at all.}}&lt;br /&gt;
&lt;br /&gt;
== Combined Output aka dual audio==&lt;br /&gt;
If you want to output to all your attached devices in parallel, e.g. HDMI out, analog out and USB sound card, it is enough to do as below:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Edit &amp;lt;code&amp;gt;/etc/pulse/default.pa&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;load-module module-combine-sink sink_name=combined&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Step 2: &#039;&#039;&#039;Restart pulseaudio.&lt;br /&gt;
&amp;lt;pre&amp;gt;killall pulseaudio&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi will then pickup the device, it is named &#039;&#039;&#039;combined&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Downside:&#039;&#039;&#039;| The dual audio sink will only output decoded audio, you cannot use it to have one slave doing AC3/DTS and the other PCM. If you use the combined sink for normal music you will realize that direct passthrough output for your movies won&#039;t be working anymore, too. This is a pulseaudio bug, cause the combine sink is not deconstructed fast enough internally while the passthrough opening is always exclusive. It will work however if your passthrough device is not part of the device combination. }}&lt;br /&gt;
&lt;br /&gt;
== Audiophile Pulse User ==&lt;br /&gt;
Pulseaudio resamples everything that does not match the underlaying sink, so if you are an audiophile user, you perhaps want to hear your 96 / 192 khz and 24 bit recordings as exact as possible. Therefore you need to tell pulseaudio to use a better resampler in general and second change the default sample rate to 96 or 192 khz. Pulseaudio does not resample audio, that is already in the correct samplerate. Furthermore you need to take care, that your sink has a wide enough output format.&lt;br /&gt;
&lt;br /&gt;
To do this configuration systemwide (96 khz in that example), change /etc/pulse/daemon.conf to include (please replace already existing lines and also remove the commenting):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default-sample-format = s32le &lt;br /&gt;
default-sample-rate = 96000&lt;br /&gt;
resample-method = speex-float-5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some remark: This will actively make &#039;&#039;&#039;passthrough non working&#039;&#039;&#039;, as we need s16le format for adding ac3 / dts / etc. float to the sink.&lt;br /&gt;
&lt;br /&gt;
The last setting will increase the resample quality from pulse and therefore the CPU load quite a lot. Again: Resampling is only done, when the sink output does not match the data you throw onto it. But as most normal mp3s are in 44.1 khz, you need to take great care when upsampling them. The overwriting of the resample-method is for this use case.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Alternatively:&#039;&#039;&#039;| If you don&#039;t want any resampling outside Kodi, e.g. no resampling done extra by pulse, you need to configure the sink as told above and set Audio Engine to &#039;&#039;&#039;Fixed&#039;&#039;&#039; with the number of channels you configured pulseaudio via pavucontrol and samplerate of &#039;&#039;&#039;96 khz&#039;&#039;&#039; with resample quality high. In that combination Kodi will take care that files are resampled (e.g. 44.1 khz or 48 khz media) in the best possible quality. Already 96 khz files are not touched at all. }}&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
{{FAQ|1=When_would_I_want_Pulseaudio&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=When would I want PulseAudio?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use your Kodi computer mainly as your Desktop when you don&#039;t run XBMC.&lt;br /&gt;
* You want other applications audio like Skype, youtube, browser mail notification in parallel with Kodi.&lt;br /&gt;
* You use Kodi in windowed mode as Desktop player&lt;br /&gt;
* You use Pulseaudio as a network sink to stream Audio to other devices in your living room.&lt;br /&gt;
* Passthrough is nice to have for you, but to be honest - you don&#039;t really need it.&lt;br /&gt;
* Whenever you plugin your Bluetooth headset, Kodi audio will continue over this new device (when Default &#039;PULSE&#039; device is chosen)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=When_would_I_want_ALSA&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=When would I want ALSA?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;ALSA&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use Kodi as your standalone media center.&lt;br /&gt;
* You are highly interested in bitperfect exclusive audio output.&lt;br /&gt;
* DTS-HD, TrueHD is something you use daily and is of high importance.&lt;br /&gt;
* You don&#039;t need other applications that would access audio in parallel.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Why_cant_I_have_both?&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=Why can&#039;t I have both?&lt;br /&gt;
| Answer=&lt;br /&gt;
* &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; might hog your Audio device and you cannot open the &#039;&#039;&#039;ALSA&#039;&#039;&#039; device exclusively, therefore we decided for one or the other.&lt;br /&gt;
* Whenever &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; is running your &#039;&#039;&#039;ALSA&#039;&#039;&#039; device that Kodi chooses, might be busy or even might vanish while you are using Kodi, when system sounds are playing and pulseaudio is trying to access the device again. Out of this reason we also won&#039;t implement a selection box to decide between &#039;&#039;&#039;ALSA&#039;&#039;&#039; and &#039;&#039;&#039;PULSE&#039;&#039;&#039;, because it will actively harm users. Advanced Users can go with the workaround listed beneath.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Forcing_alsa&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=Can I force ALSA even with PulseAudio installed?&lt;br /&gt;
| Answer=&lt;br /&gt;
{{note|But you know that doing so, it will cause problems!}}&lt;br /&gt;
&lt;br /&gt;
Yes, you can - start Kodi from terminal with:&lt;br /&gt;
&amp;lt;pre&amp;gt;AE_SINK=ALSA Kodi &amp;lt;/pre&amp;gt;&lt;br /&gt;
: Be warned as this will interfere with your Desktop sounds and PulseAudio! Consider removing pulseaudio instead.&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
=== Known issues ===&lt;br /&gt;
When your audio is much too fast or crackles a lot or passthrough only produces noise, you might have a broken driver in use. If this is the case, try to add &#039;&#039;tsched=0&#039;&#039; to the udev loading section in /etc/pulse/default.pa to read like:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;load-module module-udev-detect tsched=0&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When Pulseaudio is configured to be multi-channel output, e.g. 5.1 profile from within pavucontrol, 2.0 streams are automatically upmixed, no matter what setting you have chosen in Kodi. This is default pulseaudio server behaviour. You can workaround that by disabling &#039;&#039;enable-remixing&#039;&#039; in /etc/pulse/daemon.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;enable-remixing = no&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Beware: This will also forbid PA to remix e.g. FL,FR, LFE, FC, BL, BR into FL, FR, LFE, FC, SL, SR - which means you might loose your rears if your speaker layout is non standard.&lt;br /&gt;
&lt;br /&gt;
Audio devices are disappearing with pulseaudio 8.0 (Ubuntu 16.04) especially while running kodi and while using &#039;&#039;Adjust Refreshrate to match video&#039;&#039;. This is an issue with the module-switch-on-port-available module and will be fixed with pulseaudio 9.0, the fix sadly won&#039;t probably make it into Ubuntu 16.04. As a workaround please disable that feature by editing /etc/pulse/default.pa and commenting or removing &#039;&#039;load-module module-switch-on-port-available&#039;&#039; and reboot the system.&lt;br /&gt;
&lt;br /&gt;
== HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
====[[HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu]]====&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{forum link2|[[forum:183436|Linux - Pulseaudio Sink]] Discussion and further information.}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Audio]]&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=PulseAudio&amp;diff=122682</id>
		<title>PulseAudio</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=PulseAudio&amp;diff=122682"/>
		<updated>2016-04-26T03:39:20Z</updated>

		<summary type="html">&lt;p&gt;J876: /* HOW-TO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Audio]]|[[Linux audio]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page goes into detail on using PulseAudio on Linux systems. PulseAudio is used when Kodi is installed in a desktop-environment rather than a dedicated/direct boot setup. PulseAudio allows normal video &amp;amp; audio playback in XBMC while at the same time allowing the user to get audio in their browser or other applications. It also allows Kodi playback of video or audio to be paused in order to run a game, Skype or similar. Kodi is set to only use PulseAudio if you have installed it and running.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
In the past users have experienced problems with audio not working within Kodi, because they were running a full-blown Ubuntu desktop environment with PulseAudio installed. This happened because PulseAudio blocked the device Kodi required, and audio playback only worked reliably when using the virtual Pulse device.&lt;br /&gt;
&lt;br /&gt;
Our workaround for those users has been to uninstall PulseAudio which completely broke desktop audio.&lt;br /&gt;
&lt;br /&gt;
For XBMC 13 &#039;Gotham&#039; and later (named Kodi since 14 &#039;Helix&#039;) we wanted this situation to change, so thanks to the new &#039;&#039;&#039;PulseAudio Sink&#039;&#039;&#039; users now can run a normal Ubuntu desktop.&lt;br /&gt;
&lt;br /&gt;
== PulseAudio Output Configuration ==&lt;br /&gt;
PulseAudio will be automatically detected and selected in Kodi when it is running.&lt;br /&gt;
&lt;br /&gt;
PulseAudio can be run in one of two modes these are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Passthrough Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
Used if you want to passthrough (bitstream) AC3, DTS, and EAC3 to an AVR or other device. In order to allow passthrough to work with PulseAudio then it &#039;&#039;&#039;MUST&#039;&#039;&#039; be set to use a 2.0 channel configuration, despite the 2.0 setting this will still allow 5.1 audio from AC3, DTS, and EAC3.&lt;br /&gt;
&lt;br /&gt;
{{Note| PulseAudio does not currently allow TrueHD or DTS-MA passthrough, this is a PulseAudio limitation and not a limitation of the Kodi implementation.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Multichannel Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Used if you want Multichannel PCM out, in this mode you can configure PulseAudio for up to 7.1 channels. In this mode Kodi must decode all audio formats to PCM for passing onto the PulseAudio, this can have the advantage of improve audio/video sync.&lt;br /&gt;
&lt;br /&gt;
{{Note| Audio decoded to PCM and sent through PulseAudio the audio will not likely be &amp;quot;bit perfect&amp;quot;. Where a video has TrueHD 7.1 audio, this can be decoded by Kodi to PCM 7.1, however DTS-HD 7.1 audio can&#039;t be decoded by Kodi, only the embedded DTS Core 5.1 can be decoded to PCM 5.1 audio. Als Pulseaudio will always open the number of channels you have configured. You can stop it doing upmixing (see Known issues), but it will still open all configured channels which makes Dolby Pro Logic II of your AVR not usable.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setting up pavucontrol  ==&lt;br /&gt;
&lt;br /&gt;
=== Passthrough Mode ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Passthrough is always exclusive mode. If you have another application hogging the device, e.g. google chrome or skype or something else, Passthrough won&#039;t work.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| To use passthrough you need to be using &#039;&#039;&#039;2.0&#039;&#039;&#039; channel configuration via &#039;&#039;&#039;pavucontrol&#039;&#039;&#039; (e.g. Digital Stereo (HDMI)}}&lt;br /&gt;
&lt;br /&gt;
In order to activate Passthrough Codecs, just setup pavucontrol, as in the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Passthrough2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Passthrough1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to do this from the command line, issue:&lt;br /&gt;
 &#039;&#039;&#039;pactl set-sink-formats 0 &amp;quot;pcm; ac3-iec61937; dts-iec61937; eac3-iec61937&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;&#039;0&#039;&#039;&#039; is the sink you want to alter.&lt;br /&gt;
You can print all sinks, by using:&lt;br /&gt;
 &#039;&#039;&#039;pactl list sinks&#039;&#039;&#039;&lt;br /&gt;
You can leave out the codecs your AVR does not support, always keep pcm.&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| If you have for example 5.1 flacs or other multichannel files, you can play them as AC3 streams, check the AC3 Transcoding setting.}}&lt;br /&gt;
&lt;br /&gt;
=== Multichannel Mode ===&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| When configuring pulse to use &#039;&#039;&#039;Multichannel configuration&#039;&#039;&#039; passthrough will be disabled}}&lt;br /&gt;
To configure instead Multi channel mode, do the following settings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Lpcm2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt; &#039;&#039;To alternatively configure Multi channel, check this:&#039;&#039;.&lt;br /&gt;
File:Lpcm1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt; The &#039;&#039;Add-on manager&#039;&#039;, displaying four/five options  (explained below).&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example setup in Kodi ===&lt;br /&gt;
{{orangev|&#039;&#039;&#039;GOOD TO KNOW:&#039;&#039;&#039;| Limit sample rate can be set to Fixed - between 48kHz ~ 192kHz or as Optimized and even Best match.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmclpcm.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpaa1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmcpass2.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpass1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
=== Setup Guide ===&lt;br /&gt;
{{orangev|DEVICE ENUMERATION:| Kodi Enumerates Pulseaudio devices as SPDIF when you have &#039;&#039;&#039;Passthrough&#039;&#039;&#039; set. Otherwise its &#039;&#039;&#039;PCM Device&#039;&#039;&#039;. If &#039;&#039;&#039;Passthrough&#039;&#039;&#039; was not configured with pavucontrol - no &#039;&#039;&#039;Passthrough&#039;&#039;&#039; setting within Kodi will be available.}}&lt;br /&gt;
{{bluev|GOOD TO KNOW:|SPDIF has 2 pcm channels but can do virtual 5.1 formats like dts, ac3, eac3.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;NOTICE&#039;&#039;&#039;|The following is meant to act as a guide to get you started, thus you may want to adjust things to suit your own particular set of equipment.}}&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;text-align: center; color: black;&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;5.1&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;AC3 (&#039;&#039;&#039;1&#039;&#039;&#039;)&lt;br /&gt;
! AVR SPDIF&amp;lt;br /&amp;gt;AC3/DTS (&#039;&#039;&#039;2&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;PCM (&#039;&#039;&#039;3&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;No HD Audio (&#039;&#039;&#039;4&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;Decode HD Audio (&#039;&#039;&#039;5&#039;&#039;&#039;)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;PusleAudio Mode&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Output Devices&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Port&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;AC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;EAC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Configuration&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Profile&#039;&#039;&#039;&lt;br /&gt;
|Analog Stereo Output&lt;br /&gt;
|Analog Surround 5.1 Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Surround 5.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Surround 7.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|- &lt;br /&gt;
!Colspan=&amp;quot;9&amp;quot;|Kodi Settings&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Audio Output Device&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Number of channels&#039;&#039;&#039;&lt;br /&gt;
|2.0&lt;br /&gt;
|5.1&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|5.1&lt;br /&gt;
|2.0&lt;br /&gt;
|7.1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled passthrough&#039;&#039;&#039;&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Passthrough output device&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|N/A&lt;br /&gt;
|HDMI&lt;br /&gt;
|N/A&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Dolby Digital (AC3) capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled Dolby Digital transcoding&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;TrueHD capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS-HD capable receiver&#039;&#039;&#039; &lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Dsiabled&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; Where TV can decode 5.1 AC3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; Where AVR only has SPDIF which will support 5.1 AC3 &amp;amp; DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Where AVR can do 5.1 PCM.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Where AVR has HDMI inputs but can&#039;t decode TrueHD or DTS-HD but does support 5.1 Ac3 or DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(5)&#039;&#039;&#039; Where AVR has full decode capabilities including 7.1 PCM.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| You can only have &#039;&#039;&#039;AC3&#039;&#039;&#039;, &#039;&#039;&#039;DTS&#039;&#039;&#039;, &#039;&#039;&#039;EAC3&#039;&#039;&#039; passthrough &#039;&#039;&#039;if your Receiver supports it&#039;&#039;&#039;. Most &#039;&#039;&#039;TV&#039;s&#039;&#039;&#039; only support &#039;&#039;&#039;AC3&#039;&#039;&#039;. If you have a &#039;&#039;&#039;HDMI&#039;&#039;&#039; connection to your TV and &#039;&#039;&#039;from this TV&#039;&#039;&#039; a &#039;&#039;&#039;SPDIF/Optical&#039;&#039;&#039; connection to an &#039;&#039;&#039;AVR&#039;&#039;&#039;, passthrough might not work at all.}}&lt;br /&gt;
&lt;br /&gt;
== Combined Output aka dual audio==&lt;br /&gt;
If you want to output to all your attached devices in parallel, e.g. HDMI out, analog out and USB sound card, it is enough to do as below:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Edit &amp;lt;code&amp;gt;/etc/pulse/default.pa&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;load-module module-combine-sink sink_name=combined&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Step 2: &#039;&#039;&#039;Restart pulseaudio.&lt;br /&gt;
&amp;lt;pre&amp;gt;killall pulseaudio&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi will then pickup the device, it is named &#039;&#039;&#039;combined&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Downside:&#039;&#039;&#039;| The dual audio sink will only output decoded audio, you cannot use it to have one slave doing AC3/DTS and the other PCM. If you use the combined sink for normal music you will realize that direct passthrough output for your movies won&#039;t be working anymore, too. This is a pulseaudio bug, cause the combine sink is not deconstructed fast enough internally while the passthrough opening is always exclusive. It will work however if your passthrough device is not part of the device combination. }}&lt;br /&gt;
&lt;br /&gt;
== Audiophile Pulse User ==&lt;br /&gt;
Pulseaudio resamples everything that does not match the underlaying sink, so if you are an audiophile user, you perhaps want to hear your 96 / 192 khz and 24 bit recordings as exact as possible. Therefore you need to tell pulseaudio to use a better resampler in general and second change the default sample rate to 96 or 192 khz. Pulseaudio does not resample audio, that is already in the correct samplerate. Furthermore you need to take care, that your sink has a wide enough output format.&lt;br /&gt;
&lt;br /&gt;
To do this configuration systemwide (96 khz in that example), change /etc/pulse/daemon.conf to include (please replace already existing lines and also remove the commenting):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default-sample-format = s32le &lt;br /&gt;
default-sample-rate = 96000&lt;br /&gt;
resample-method = speex-float-5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some remark: This will actively make &#039;&#039;&#039;passthrough non working&#039;&#039;&#039;, as we need s16le format for adding ac3 / dts / etc. float to the sink.&lt;br /&gt;
&lt;br /&gt;
The last setting will increase the resample quality from pulse and therefore the CPU load quite a lot. Again: Resampling is only done, when the sink output does not match the data you throw onto it. But as most normal mp3s are in 44.1 khz, you need to take great care when upsampling them. The overwriting of the resample-method is for this use case.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Alternatively:&#039;&#039;&#039;| If you don&#039;t want any resampling outside Kodi, e.g. no resampling done extra by pulse, you need to configure the sink as told above and set Audio Engine to &#039;&#039;&#039;Fixed&#039;&#039;&#039; with the number of channels you configured pulseaudio via pavucontrol and samplerate of &#039;&#039;&#039;96 khz&#039;&#039;&#039; with resample quality high. In that combination Kodi will take care that files are resampled (e.g. 44.1 khz or 48 khz media) in the best possible quality. Already 96 khz files are not touched at all. }}&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
{{FAQ|1=When_would_I_want_Pulseaudio&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=When would I want PulseAudio?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use your Kodi computer mainly as your Desktop when you don&#039;t run XBMC.&lt;br /&gt;
* You want other applications audio like Skype, youtube, browser mail notification in parallel with Kodi.&lt;br /&gt;
* You use Kodi in windowed mode as Desktop player&lt;br /&gt;
* You use Pulseaudio as a network sink to stream Audio to other devices in your living room.&lt;br /&gt;
* Passthrough is nice to have for you, but to be honest - you don&#039;t really need it.&lt;br /&gt;
* Whenever you plugin your Bluetooth headset, Kodi audio will continue over this new device (when Default &#039;PULSE&#039; device is chosen)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=When_would_I_want_ALSA&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=When would I want ALSA?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;ALSA&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use Kodi as your standalone media center.&lt;br /&gt;
* You are highly interested in bitperfect exclusive audio output.&lt;br /&gt;
* DTS-HD, TrueHD is something you use daily and is of high importance.&lt;br /&gt;
* You don&#039;t need other applications that would access audio in parallel.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Why_cant_I_have_both?&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=Why can&#039;t I have both?&lt;br /&gt;
| Answer=&lt;br /&gt;
* &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; might hog your Audio device and you cannot open the &#039;&#039;&#039;ALSA&#039;&#039;&#039; device exclusively, therefore we decided for one or the other.&lt;br /&gt;
* Whenever &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; is running your &#039;&#039;&#039;ALSA&#039;&#039;&#039; device that Kodi chooses, might be busy or even might vanish while you are using Kodi, when system sounds are playing and pulseaudio is trying to access the device again. Out of this reason we also won&#039;t implement a selection box to decide between &#039;&#039;&#039;ALSA&#039;&#039;&#039; and &#039;&#039;&#039;PULSE&#039;&#039;&#039;, because it will actively harm users. Advanced Users can go with the workaround listed beneath.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Forcing_alsa&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=Can I force ALSA even with PulseAudio installed?&lt;br /&gt;
| Answer=&lt;br /&gt;
{{note|But you know that doing so, it will cause problems!}}&lt;br /&gt;
&lt;br /&gt;
Yes, you can - start Kodi from terminal with:&lt;br /&gt;
&amp;lt;pre&amp;gt;AE_SINK=ALSA Kodi &amp;lt;/pre&amp;gt;&lt;br /&gt;
: Be warned as this will interfere with your Desktop sounds and PulseAudio! Consider removing pulseaudio instead.&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
=== Known issues ===&lt;br /&gt;
When your audio is much too fast or crackles a lot or passthrough only produces noise, you might have a broken driver in use. If this is the case, try to add &#039;&#039;tsched=0&#039;&#039; to the udev loading section in /etc/pulse/default.pa to read like:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;load-module module-udev-detect tsched=0&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When Pulseaudio is configured to be multi-channel output, e.g. 5.1 profile from within pavucontrol, 2.0 streams are automatically upmixed, no matter what setting you have chosen in Kodi. This is default pulseaudio server behaviour. You can workaround that by disabling &#039;&#039;enable-remixing&#039;&#039; in /etc/pulse/daemon.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;enable-remixing = no&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Beware: This will also forbid PA to remix e.g. FL,FR, LFE, FC, BL, BR into FL, FR, LFE, FC, SL, SR - which means you might loose your rears if your speaker layout is non standard.&lt;br /&gt;
&lt;br /&gt;
Audio devices are disappearing with pulseaudio 8.0 (Ubuntu 16.04) especially while running kodi and while using &#039;&#039;Adjust Refreshrate to match video&#039;&#039;. This is an issue with the module-switch-on-port-available module and will be fixed with pulseaudio 9.0, the fix sadly won&#039;t probably make it into Ubuntu 16.04. As a workaround please disable that feature by editing /etc/pulse/default.pa and commenting or removing &#039;&#039;load-module module-switch-on-port-available&#039;&#039; and reboot the system.&lt;br /&gt;
&lt;br /&gt;
== HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
[[PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{forum link2|[[forum:183436|Linux - Pulseaudio Sink]] Discussion and further information.}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Audio]]&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=PulseAudio&amp;diff=122681</id>
		<title>PulseAudio</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=PulseAudio&amp;diff=122681"/>
		<updated>2016-04-26T03:38:38Z</updated>

		<summary type="html">&lt;p&gt;J876: /* HOW-TO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Audio]]|[[Linux audio]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page goes into detail on using PulseAudio on Linux systems. PulseAudio is used when Kodi is installed in a desktop-environment rather than a dedicated/direct boot setup. PulseAudio allows normal video &amp;amp; audio playback in XBMC while at the same time allowing the user to get audio in their browser or other applications. It also allows Kodi playback of video or audio to be paused in order to run a game, Skype or similar. Kodi is set to only use PulseAudio if you have installed it and running.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
In the past users have experienced problems with audio not working within Kodi, because they were running a full-blown Ubuntu desktop environment with PulseAudio installed. This happened because PulseAudio blocked the device Kodi required, and audio playback only worked reliably when using the virtual Pulse device.&lt;br /&gt;
&lt;br /&gt;
Our workaround for those users has been to uninstall PulseAudio which completely broke desktop audio.&lt;br /&gt;
&lt;br /&gt;
For XBMC 13 &#039;Gotham&#039; and later (named Kodi since 14 &#039;Helix&#039;) we wanted this situation to change, so thanks to the new &#039;&#039;&#039;PulseAudio Sink&#039;&#039;&#039; users now can run a normal Ubuntu desktop.&lt;br /&gt;
&lt;br /&gt;
== PulseAudio Output Configuration ==&lt;br /&gt;
PulseAudio will be automatically detected and selected in Kodi when it is running.&lt;br /&gt;
&lt;br /&gt;
PulseAudio can be run in one of two modes these are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Passthrough Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
Used if you want to passthrough (bitstream) AC3, DTS, and EAC3 to an AVR or other device. In order to allow passthrough to work with PulseAudio then it &#039;&#039;&#039;MUST&#039;&#039;&#039; be set to use a 2.0 channel configuration, despite the 2.0 setting this will still allow 5.1 audio from AC3, DTS, and EAC3.&lt;br /&gt;
&lt;br /&gt;
{{Note| PulseAudio does not currently allow TrueHD or DTS-MA passthrough, this is a PulseAudio limitation and not a limitation of the Kodi implementation.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Multichannel Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Used if you want Multichannel PCM out, in this mode you can configure PulseAudio for up to 7.1 channels. In this mode Kodi must decode all audio formats to PCM for passing onto the PulseAudio, this can have the advantage of improve audio/video sync.&lt;br /&gt;
&lt;br /&gt;
{{Note| Audio decoded to PCM and sent through PulseAudio the audio will not likely be &amp;quot;bit perfect&amp;quot;. Where a video has TrueHD 7.1 audio, this can be decoded by Kodi to PCM 7.1, however DTS-HD 7.1 audio can&#039;t be decoded by Kodi, only the embedded DTS Core 5.1 can be decoded to PCM 5.1 audio. Als Pulseaudio will always open the number of channels you have configured. You can stop it doing upmixing (see Known issues), but it will still open all configured channels which makes Dolby Pro Logic II of your AVR not usable.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setting up pavucontrol  ==&lt;br /&gt;
&lt;br /&gt;
=== Passthrough Mode ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Passthrough is always exclusive mode. If you have another application hogging the device, e.g. google chrome or skype or something else, Passthrough won&#039;t work.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| To use passthrough you need to be using &#039;&#039;&#039;2.0&#039;&#039;&#039; channel configuration via &#039;&#039;&#039;pavucontrol&#039;&#039;&#039; (e.g. Digital Stereo (HDMI)}}&lt;br /&gt;
&lt;br /&gt;
In order to activate Passthrough Codecs, just setup pavucontrol, as in the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Passthrough2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Passthrough1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to do this from the command line, issue:&lt;br /&gt;
 &#039;&#039;&#039;pactl set-sink-formats 0 &amp;quot;pcm; ac3-iec61937; dts-iec61937; eac3-iec61937&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;&#039;0&#039;&#039;&#039; is the sink you want to alter.&lt;br /&gt;
You can print all sinks, by using:&lt;br /&gt;
 &#039;&#039;&#039;pactl list sinks&#039;&#039;&#039;&lt;br /&gt;
You can leave out the codecs your AVR does not support, always keep pcm.&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| If you have for example 5.1 flacs or other multichannel files, you can play them as AC3 streams, check the AC3 Transcoding setting.}}&lt;br /&gt;
&lt;br /&gt;
=== Multichannel Mode ===&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| When configuring pulse to use &#039;&#039;&#039;Multichannel configuration&#039;&#039;&#039; passthrough will be disabled}}&lt;br /&gt;
To configure instead Multi channel mode, do the following settings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Lpcm2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt; &#039;&#039;To alternatively configure Multi channel, check this:&#039;&#039;.&lt;br /&gt;
File:Lpcm1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt; The &#039;&#039;Add-on manager&#039;&#039;, displaying four/five options  (explained below).&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example setup in Kodi ===&lt;br /&gt;
{{orangev|&#039;&#039;&#039;GOOD TO KNOW:&#039;&#039;&#039;| Limit sample rate can be set to Fixed - between 48kHz ~ 192kHz or as Optimized and even Best match.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmclpcm.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpaa1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmcpass2.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpass1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
=== Setup Guide ===&lt;br /&gt;
{{orangev|DEVICE ENUMERATION:| Kodi Enumerates Pulseaudio devices as SPDIF when you have &#039;&#039;&#039;Passthrough&#039;&#039;&#039; set. Otherwise its &#039;&#039;&#039;PCM Device&#039;&#039;&#039;. If &#039;&#039;&#039;Passthrough&#039;&#039;&#039; was not configured with pavucontrol - no &#039;&#039;&#039;Passthrough&#039;&#039;&#039; setting within Kodi will be available.}}&lt;br /&gt;
{{bluev|GOOD TO KNOW:|SPDIF has 2 pcm channels but can do virtual 5.1 formats like dts, ac3, eac3.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;NOTICE&#039;&#039;&#039;|The following is meant to act as a guide to get you started, thus you may want to adjust things to suit your own particular set of equipment.}}&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;text-align: center; color: black;&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;5.1&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;AC3 (&#039;&#039;&#039;1&#039;&#039;&#039;)&lt;br /&gt;
! AVR SPDIF&amp;lt;br /&amp;gt;AC3/DTS (&#039;&#039;&#039;2&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;PCM (&#039;&#039;&#039;3&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;No HD Audio (&#039;&#039;&#039;4&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;Decode HD Audio (&#039;&#039;&#039;5&#039;&#039;&#039;)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;PusleAudio Mode&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Output Devices&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Port&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;AC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;EAC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Configuration&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Profile&#039;&#039;&#039;&lt;br /&gt;
|Analog Stereo Output&lt;br /&gt;
|Analog Surround 5.1 Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Surround 5.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Surround 7.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|- &lt;br /&gt;
!Colspan=&amp;quot;9&amp;quot;|Kodi Settings&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Audio Output Device&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Number of channels&#039;&#039;&#039;&lt;br /&gt;
|2.0&lt;br /&gt;
|5.1&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|5.1&lt;br /&gt;
|2.0&lt;br /&gt;
|7.1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled passthrough&#039;&#039;&#039;&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Passthrough output device&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|N/A&lt;br /&gt;
|HDMI&lt;br /&gt;
|N/A&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Dolby Digital (AC3) capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled Dolby Digital transcoding&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;TrueHD capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS-HD capable receiver&#039;&#039;&#039; &lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Dsiabled&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; Where TV can decode 5.1 AC3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; Where AVR only has SPDIF which will support 5.1 AC3 &amp;amp; DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Where AVR can do 5.1 PCM.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Where AVR has HDMI inputs but can&#039;t decode TrueHD or DTS-HD but does support 5.1 Ac3 or DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(5)&#039;&#039;&#039; Where AVR has full decode capabilities including 7.1 PCM.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| You can only have &#039;&#039;&#039;AC3&#039;&#039;&#039;, &#039;&#039;&#039;DTS&#039;&#039;&#039;, &#039;&#039;&#039;EAC3&#039;&#039;&#039; passthrough &#039;&#039;&#039;if your Receiver supports it&#039;&#039;&#039;. Most &#039;&#039;&#039;TV&#039;s&#039;&#039;&#039; only support &#039;&#039;&#039;AC3&#039;&#039;&#039;. If you have a &#039;&#039;&#039;HDMI&#039;&#039;&#039; connection to your TV and &#039;&#039;&#039;from this TV&#039;&#039;&#039; a &#039;&#039;&#039;SPDIF/Optical&#039;&#039;&#039; connection to an &#039;&#039;&#039;AVR&#039;&#039;&#039;, passthrough might not work at all.}}&lt;br /&gt;
&lt;br /&gt;
== Combined Output aka dual audio==&lt;br /&gt;
If you want to output to all your attached devices in parallel, e.g. HDMI out, analog out and USB sound card, it is enough to do as below:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Edit &amp;lt;code&amp;gt;/etc/pulse/default.pa&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;load-module module-combine-sink sink_name=combined&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Step 2: &#039;&#039;&#039;Restart pulseaudio.&lt;br /&gt;
&amp;lt;pre&amp;gt;killall pulseaudio&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi will then pickup the device, it is named &#039;&#039;&#039;combined&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Downside:&#039;&#039;&#039;| The dual audio sink will only output decoded audio, you cannot use it to have one slave doing AC3/DTS and the other PCM. If you use the combined sink for normal music you will realize that direct passthrough output for your movies won&#039;t be working anymore, too. This is a pulseaudio bug, cause the combine sink is not deconstructed fast enough internally while the passthrough opening is always exclusive. It will work however if your passthrough device is not part of the device combination. }}&lt;br /&gt;
&lt;br /&gt;
== Audiophile Pulse User ==&lt;br /&gt;
Pulseaudio resamples everything that does not match the underlaying sink, so if you are an audiophile user, you perhaps want to hear your 96 / 192 khz and 24 bit recordings as exact as possible. Therefore you need to tell pulseaudio to use a better resampler in general and second change the default sample rate to 96 or 192 khz. Pulseaudio does not resample audio, that is already in the correct samplerate. Furthermore you need to take care, that your sink has a wide enough output format.&lt;br /&gt;
&lt;br /&gt;
To do this configuration systemwide (96 khz in that example), change /etc/pulse/daemon.conf to include (please replace already existing lines and also remove the commenting):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default-sample-format = s32le &lt;br /&gt;
default-sample-rate = 96000&lt;br /&gt;
resample-method = speex-float-5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some remark: This will actively make &#039;&#039;&#039;passthrough non working&#039;&#039;&#039;, as we need s16le format for adding ac3 / dts / etc. float to the sink.&lt;br /&gt;
&lt;br /&gt;
The last setting will increase the resample quality from pulse and therefore the CPU load quite a lot. Again: Resampling is only done, when the sink output does not match the data you throw onto it. But as most normal mp3s are in 44.1 khz, you need to take great care when upsampling them. The overwriting of the resample-method is for this use case.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Alternatively:&#039;&#039;&#039;| If you don&#039;t want any resampling outside Kodi, e.g. no resampling done extra by pulse, you need to configure the sink as told above and set Audio Engine to &#039;&#039;&#039;Fixed&#039;&#039;&#039; with the number of channels you configured pulseaudio via pavucontrol and samplerate of &#039;&#039;&#039;96 khz&#039;&#039;&#039; with resample quality high. In that combination Kodi will take care that files are resampled (e.g. 44.1 khz or 48 khz media) in the best possible quality. Already 96 khz files are not touched at all. }}&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
{{FAQ|1=When_would_I_want_Pulseaudio&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=When would I want PulseAudio?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use your Kodi computer mainly as your Desktop when you don&#039;t run XBMC.&lt;br /&gt;
* You want other applications audio like Skype, youtube, browser mail notification in parallel with Kodi.&lt;br /&gt;
* You use Kodi in windowed mode as Desktop player&lt;br /&gt;
* You use Pulseaudio as a network sink to stream Audio to other devices in your living room.&lt;br /&gt;
* Passthrough is nice to have for you, but to be honest - you don&#039;t really need it.&lt;br /&gt;
* Whenever you plugin your Bluetooth headset, Kodi audio will continue over this new device (when Default &#039;PULSE&#039; device is chosen)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=When_would_I_want_ALSA&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=When would I want ALSA?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;ALSA&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use Kodi as your standalone media center.&lt;br /&gt;
* You are highly interested in bitperfect exclusive audio output.&lt;br /&gt;
* DTS-HD, TrueHD is something you use daily and is of high importance.&lt;br /&gt;
* You don&#039;t need other applications that would access audio in parallel.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Why_cant_I_have_both?&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=Why can&#039;t I have both?&lt;br /&gt;
| Answer=&lt;br /&gt;
* &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; might hog your Audio device and you cannot open the &#039;&#039;&#039;ALSA&#039;&#039;&#039; device exclusively, therefore we decided for one or the other.&lt;br /&gt;
* Whenever &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; is running your &#039;&#039;&#039;ALSA&#039;&#039;&#039; device that Kodi chooses, might be busy or even might vanish while you are using Kodi, when system sounds are playing and pulseaudio is trying to access the device again. Out of this reason we also won&#039;t implement a selection box to decide between &#039;&#039;&#039;ALSA&#039;&#039;&#039; and &#039;&#039;&#039;PULSE&#039;&#039;&#039;, because it will actively harm users. Advanced Users can go with the workaround listed beneath.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Forcing_alsa&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=Can I force ALSA even with PulseAudio installed?&lt;br /&gt;
| Answer=&lt;br /&gt;
{{note|But you know that doing so, it will cause problems!}}&lt;br /&gt;
&lt;br /&gt;
Yes, you can - start Kodi from terminal with:&lt;br /&gt;
&amp;lt;pre&amp;gt;AE_SINK=ALSA Kodi &amp;lt;/pre&amp;gt;&lt;br /&gt;
: Be warned as this will interfere with your Desktop sounds and PulseAudio! Consider removing pulseaudio instead.&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
=== Known issues ===&lt;br /&gt;
When your audio is much too fast or crackles a lot or passthrough only produces noise, you might have a broken driver in use. If this is the case, try to add &#039;&#039;tsched=0&#039;&#039; to the udev loading section in /etc/pulse/default.pa to read like:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;load-module module-udev-detect tsched=0&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When Pulseaudio is configured to be multi-channel output, e.g. 5.1 profile from within pavucontrol, 2.0 streams are automatically upmixed, no matter what setting you have chosen in Kodi. This is default pulseaudio server behaviour. You can workaround that by disabling &#039;&#039;enable-remixing&#039;&#039; in /etc/pulse/daemon.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;enable-remixing = no&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Beware: This will also forbid PA to remix e.g. FL,FR, LFE, FC, BL, BR into FL, FR, LFE, FC, SL, SR - which means you might loose your rears if your speaker layout is non standard.&lt;br /&gt;
&lt;br /&gt;
Audio devices are disappearing with pulseaudio 8.0 (Ubuntu 16.04) especially while running kodi and while using &#039;&#039;Adjust Refreshrate to match video&#039;&#039;. This is an issue with the module-switch-on-port-available module and will be fixed with pulseaudio 9.0, the fix sadly won&#039;t probably make it into Ubuntu 16.04. As a workaround please disable that feature by editing /etc/pulse/default.pa and commenting or removing &#039;&#039;load-module module-switch-on-port-available&#039;&#039; and reboot the system.&lt;br /&gt;
&lt;br /&gt;
== HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
[[PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
=== References ===&lt;br /&gt;
{{forum link2|[[forum:183436|Linux - Pulseaudio Sink]] Discussion and further information.}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Audio]]&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=PulseAudio&amp;diff=122680</id>
		<title>PulseAudio</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=PulseAudio&amp;diff=122680"/>
		<updated>2016-04-26T03:37:52Z</updated>

		<summary type="html">&lt;p&gt;J876: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Audio]]|[[Linux audio]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page goes into detail on using PulseAudio on Linux systems. PulseAudio is used when Kodi is installed in a desktop-environment rather than a dedicated/direct boot setup. PulseAudio allows normal video &amp;amp; audio playback in XBMC while at the same time allowing the user to get audio in their browser or other applications. It also allows Kodi playback of video or audio to be paused in order to run a game, Skype or similar. Kodi is set to only use PulseAudio if you have installed it and running.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
In the past users have experienced problems with audio not working within Kodi, because they were running a full-blown Ubuntu desktop environment with PulseAudio installed. This happened because PulseAudio blocked the device Kodi required, and audio playback only worked reliably when using the virtual Pulse device.&lt;br /&gt;
&lt;br /&gt;
Our workaround for those users has been to uninstall PulseAudio which completely broke desktop audio.&lt;br /&gt;
&lt;br /&gt;
For XBMC 13 &#039;Gotham&#039; and later (named Kodi since 14 &#039;Helix&#039;) we wanted this situation to change, so thanks to the new &#039;&#039;&#039;PulseAudio Sink&#039;&#039;&#039; users now can run a normal Ubuntu desktop.&lt;br /&gt;
&lt;br /&gt;
== PulseAudio Output Configuration ==&lt;br /&gt;
PulseAudio will be automatically detected and selected in Kodi when it is running.&lt;br /&gt;
&lt;br /&gt;
PulseAudio can be run in one of two modes these are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Passthrough Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
Used if you want to passthrough (bitstream) AC3, DTS, and EAC3 to an AVR or other device. In order to allow passthrough to work with PulseAudio then it &#039;&#039;&#039;MUST&#039;&#039;&#039; be set to use a 2.0 channel configuration, despite the 2.0 setting this will still allow 5.1 audio from AC3, DTS, and EAC3.&lt;br /&gt;
&lt;br /&gt;
{{Note| PulseAudio does not currently allow TrueHD or DTS-MA passthrough, this is a PulseAudio limitation and not a limitation of the Kodi implementation.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Multichannel Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Used if you want Multichannel PCM out, in this mode you can configure PulseAudio for up to 7.1 channels. In this mode Kodi must decode all audio formats to PCM for passing onto the PulseAudio, this can have the advantage of improve audio/video sync.&lt;br /&gt;
&lt;br /&gt;
{{Note| Audio decoded to PCM and sent through PulseAudio the audio will not likely be &amp;quot;bit perfect&amp;quot;. Where a video has TrueHD 7.1 audio, this can be decoded by Kodi to PCM 7.1, however DTS-HD 7.1 audio can&#039;t be decoded by Kodi, only the embedded DTS Core 5.1 can be decoded to PCM 5.1 audio. Als Pulseaudio will always open the number of channels you have configured. You can stop it doing upmixing (see Known issues), but it will still open all configured channels which makes Dolby Pro Logic II of your AVR not usable.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setting up pavucontrol  ==&lt;br /&gt;
&lt;br /&gt;
=== Passthrough Mode ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Passthrough is always exclusive mode. If you have another application hogging the device, e.g. google chrome or skype or something else, Passthrough won&#039;t work.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| To use passthrough you need to be using &#039;&#039;&#039;2.0&#039;&#039;&#039; channel configuration via &#039;&#039;&#039;pavucontrol&#039;&#039;&#039; (e.g. Digital Stereo (HDMI)}}&lt;br /&gt;
&lt;br /&gt;
In order to activate Passthrough Codecs, just setup pavucontrol, as in the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Passthrough2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Passthrough1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to do this from the command line, issue:&lt;br /&gt;
 &#039;&#039;&#039;pactl set-sink-formats 0 &amp;quot;pcm; ac3-iec61937; dts-iec61937; eac3-iec61937&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;&#039;0&#039;&#039;&#039; is the sink you want to alter.&lt;br /&gt;
You can print all sinks, by using:&lt;br /&gt;
 &#039;&#039;&#039;pactl list sinks&#039;&#039;&#039;&lt;br /&gt;
You can leave out the codecs your AVR does not support, always keep pcm.&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| If you have for example 5.1 flacs or other multichannel files, you can play them as AC3 streams, check the AC3 Transcoding setting.}}&lt;br /&gt;
&lt;br /&gt;
=== Multichannel Mode ===&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| When configuring pulse to use &#039;&#039;&#039;Multichannel configuration&#039;&#039;&#039; passthrough will be disabled}}&lt;br /&gt;
To configure instead Multi channel mode, do the following settings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Lpcm2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt; &#039;&#039;To alternatively configure Multi channel, check this:&#039;&#039;.&lt;br /&gt;
File:Lpcm1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt; The &#039;&#039;Add-on manager&#039;&#039;, displaying four/five options  (explained below).&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example setup in Kodi ===&lt;br /&gt;
{{orangev|&#039;&#039;&#039;GOOD TO KNOW:&#039;&#039;&#039;| Limit sample rate can be set to Fixed - between 48kHz ~ 192kHz or as Optimized and even Best match.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmclpcm.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpaa1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmcpass2.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpass1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
=== Setup Guide ===&lt;br /&gt;
{{orangev|DEVICE ENUMERATION:| Kodi Enumerates Pulseaudio devices as SPDIF when you have &#039;&#039;&#039;Passthrough&#039;&#039;&#039; set. Otherwise its &#039;&#039;&#039;PCM Device&#039;&#039;&#039;. If &#039;&#039;&#039;Passthrough&#039;&#039;&#039; was not configured with pavucontrol - no &#039;&#039;&#039;Passthrough&#039;&#039;&#039; setting within Kodi will be available.}}&lt;br /&gt;
{{bluev|GOOD TO KNOW:|SPDIF has 2 pcm channels but can do virtual 5.1 formats like dts, ac3, eac3.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;NOTICE&#039;&#039;&#039;|The following is meant to act as a guide to get you started, thus you may want to adjust things to suit your own particular set of equipment.}}&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;text-align: center; color: black;&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;5.1&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;AC3 (&#039;&#039;&#039;1&#039;&#039;&#039;)&lt;br /&gt;
! AVR SPDIF&amp;lt;br /&amp;gt;AC3/DTS (&#039;&#039;&#039;2&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;PCM (&#039;&#039;&#039;3&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;No HD Audio (&#039;&#039;&#039;4&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;Decode HD Audio (&#039;&#039;&#039;5&#039;&#039;&#039;)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;PusleAudio Mode&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Output Devices&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Port&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;AC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;EAC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Configuration&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Profile&#039;&#039;&#039;&lt;br /&gt;
|Analog Stereo Output&lt;br /&gt;
|Analog Surround 5.1 Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Surround 5.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Surround 7.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|- &lt;br /&gt;
!Colspan=&amp;quot;9&amp;quot;|Kodi Settings&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Audio Output Device&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Number of channels&#039;&#039;&#039;&lt;br /&gt;
|2.0&lt;br /&gt;
|5.1&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|5.1&lt;br /&gt;
|2.0&lt;br /&gt;
|7.1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled passthrough&#039;&#039;&#039;&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Passthrough output device&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|N/A&lt;br /&gt;
|HDMI&lt;br /&gt;
|N/A&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Dolby Digital (AC3) capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled Dolby Digital transcoding&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;TrueHD capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS-HD capable receiver&#039;&#039;&#039; &lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Dsiabled&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; Where TV can decode 5.1 AC3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; Where AVR only has SPDIF which will support 5.1 AC3 &amp;amp; DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Where AVR can do 5.1 PCM.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Where AVR has HDMI inputs but can&#039;t decode TrueHD or DTS-HD but does support 5.1 Ac3 or DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(5)&#039;&#039;&#039; Where AVR has full decode capabilities including 7.1 PCM.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| You can only have &#039;&#039;&#039;AC3&#039;&#039;&#039;, &#039;&#039;&#039;DTS&#039;&#039;&#039;, &#039;&#039;&#039;EAC3&#039;&#039;&#039; passthrough &#039;&#039;&#039;if your Receiver supports it&#039;&#039;&#039;. Most &#039;&#039;&#039;TV&#039;s&#039;&#039;&#039; only support &#039;&#039;&#039;AC3&#039;&#039;&#039;. If you have a &#039;&#039;&#039;HDMI&#039;&#039;&#039; connection to your TV and &#039;&#039;&#039;from this TV&#039;&#039;&#039; a &#039;&#039;&#039;SPDIF/Optical&#039;&#039;&#039; connection to an &#039;&#039;&#039;AVR&#039;&#039;&#039;, passthrough might not work at all.}}&lt;br /&gt;
&lt;br /&gt;
== Combined Output aka dual audio==&lt;br /&gt;
If you want to output to all your attached devices in parallel, e.g. HDMI out, analog out and USB sound card, it is enough to do as below:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Edit &amp;lt;code&amp;gt;/etc/pulse/default.pa&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;load-module module-combine-sink sink_name=combined&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Step 2: &#039;&#039;&#039;Restart pulseaudio.&lt;br /&gt;
&amp;lt;pre&amp;gt;killall pulseaudio&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi will then pickup the device, it is named &#039;&#039;&#039;combined&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Downside:&#039;&#039;&#039;| The dual audio sink will only output decoded audio, you cannot use it to have one slave doing AC3/DTS and the other PCM. If you use the combined sink for normal music you will realize that direct passthrough output for your movies won&#039;t be working anymore, too. This is a pulseaudio bug, cause the combine sink is not deconstructed fast enough internally while the passthrough opening is always exclusive. It will work however if your passthrough device is not part of the device combination. }}&lt;br /&gt;
&lt;br /&gt;
== Audiophile Pulse User ==&lt;br /&gt;
Pulseaudio resamples everything that does not match the underlaying sink, so if you are an audiophile user, you perhaps want to hear your 96 / 192 khz and 24 bit recordings as exact as possible. Therefore you need to tell pulseaudio to use a better resampler in general and second change the default sample rate to 96 or 192 khz. Pulseaudio does not resample audio, that is already in the correct samplerate. Furthermore you need to take care, that your sink has a wide enough output format.&lt;br /&gt;
&lt;br /&gt;
To do this configuration systemwide (96 khz in that example), change /etc/pulse/daemon.conf to include (please replace already existing lines and also remove the commenting):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default-sample-format = s32le &lt;br /&gt;
default-sample-rate = 96000&lt;br /&gt;
resample-method = speex-float-5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some remark: This will actively make &#039;&#039;&#039;passthrough non working&#039;&#039;&#039;, as we need s16le format for adding ac3 / dts / etc. float to the sink.&lt;br /&gt;
&lt;br /&gt;
The last setting will increase the resample quality from pulse and therefore the CPU load quite a lot. Again: Resampling is only done, when the sink output does not match the data you throw onto it. But as most normal mp3s are in 44.1 khz, you need to take great care when upsampling them. The overwriting of the resample-method is for this use case.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Alternatively:&#039;&#039;&#039;| If you don&#039;t want any resampling outside Kodi, e.g. no resampling done extra by pulse, you need to configure the sink as told above and set Audio Engine to &#039;&#039;&#039;Fixed&#039;&#039;&#039; with the number of channels you configured pulseaudio via pavucontrol and samplerate of &#039;&#039;&#039;96 khz&#039;&#039;&#039; with resample quality high. In that combination Kodi will take care that files are resampled (e.g. 44.1 khz or 48 khz media) in the best possible quality. Already 96 khz files are not touched at all. }}&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
{{FAQ|1=When_would_I_want_Pulseaudio&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=When would I want PulseAudio?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use your Kodi computer mainly as your Desktop when you don&#039;t run XBMC.&lt;br /&gt;
* You want other applications audio like Skype, youtube, browser mail notification in parallel with Kodi.&lt;br /&gt;
* You use Kodi in windowed mode as Desktop player&lt;br /&gt;
* You use Pulseaudio as a network sink to stream Audio to other devices in your living room.&lt;br /&gt;
* Passthrough is nice to have for you, but to be honest - you don&#039;t really need it.&lt;br /&gt;
* Whenever you plugin your Bluetooth headset, Kodi audio will continue over this new device (when Default &#039;PULSE&#039; device is chosen)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=When_would_I_want_ALSA&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=When would I want ALSA?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;ALSA&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use Kodi as your standalone media center.&lt;br /&gt;
* You are highly interested in bitperfect exclusive audio output.&lt;br /&gt;
* DTS-HD, TrueHD is something you use daily and is of high importance.&lt;br /&gt;
* You don&#039;t need other applications that would access audio in parallel.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Why_cant_I_have_both?&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=Why can&#039;t I have both?&lt;br /&gt;
| Answer=&lt;br /&gt;
* &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; might hog your Audio device and you cannot open the &#039;&#039;&#039;ALSA&#039;&#039;&#039; device exclusively, therefore we decided for one or the other.&lt;br /&gt;
* Whenever &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; is running your &#039;&#039;&#039;ALSA&#039;&#039;&#039; device that Kodi chooses, might be busy or even might vanish while you are using Kodi, when system sounds are playing and pulseaudio is trying to access the device again. Out of this reason we also won&#039;t implement a selection box to decide between &#039;&#039;&#039;ALSA&#039;&#039;&#039; and &#039;&#039;&#039;PULSE&#039;&#039;&#039;, because it will actively harm users. Advanced Users can go with the workaround listed beneath.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Forcing_alsa&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=Can I force ALSA even with PulseAudio installed?&lt;br /&gt;
| Answer=&lt;br /&gt;
{{note|But you know that doing so, it will cause problems!}}&lt;br /&gt;
&lt;br /&gt;
Yes, you can - start Kodi from terminal with:&lt;br /&gt;
&amp;lt;pre&amp;gt;AE_SINK=ALSA Kodi &amp;lt;/pre&amp;gt;&lt;br /&gt;
: Be warned as this will interfere with your Desktop sounds and PulseAudio! Consider removing pulseaudio instead.&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
=== Known issues ===&lt;br /&gt;
When your audio is much too fast or crackles a lot or passthrough only produces noise, you might have a broken driver in use. If this is the case, try to add &#039;&#039;tsched=0&#039;&#039; to the udev loading section in /etc/pulse/default.pa to read like:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;load-module module-udev-detect tsched=0&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When Pulseaudio is configured to be multi-channel output, e.g. 5.1 profile from within pavucontrol, 2.0 streams are automatically upmixed, no matter what setting you have chosen in Kodi. This is default pulseaudio server behaviour. You can workaround that by disabling &#039;&#039;enable-remixing&#039;&#039; in /etc/pulse/daemon.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;enable-remixing = no&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Beware: This will also forbid PA to remix e.g. FL,FR, LFE, FC, BL, BR into FL, FR, LFE, FC, SL, SR - which means you might loose your rears if your speaker layout is non standard.&lt;br /&gt;
&lt;br /&gt;
Audio devices are disappearing with pulseaudio 8.0 (Ubuntu 16.04) especially while running kodi and while using &#039;&#039;Adjust Refreshrate to match video&#039;&#039;. This is an issue with the module-switch-on-port-available module and will be fixed with pulseaudio 9.0, the fix sadly won&#039;t probably make it into Ubuntu 16.04. As a workaround please disable that feature by editing /etc/pulse/default.pa and commenting or removing &#039;&#039;load-module module-switch-on-port-available&#039;&#039; and reboot the system.&lt;br /&gt;
&lt;br /&gt;
== HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* [[PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
=== References ===&lt;br /&gt;
{{forum link2|[[forum:183436|Linux - Pulseaudio Sink]] Discussion and further information.}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Audio]]&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122679</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122679"/>
		<updated>2016-04-26T03:31:22Z</updated>

		<summary type="html">&lt;p&gt;J876: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu - why it may not be such a good idea ==&lt;br /&gt;
&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot the Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to enable PulseAudio again ===&lt;br /&gt;
&lt;br /&gt;
* Follow the editing steps for either the local user or globally (all users) and instead of&lt;br /&gt;
: using the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in the relevant configuration file, change the line to either:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or alternatively:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned back on.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
This guide was developed from the information obtained by the following resources:&lt;br /&gt;
&lt;br /&gt;
* http://askubuntu.com/questions/8425/how-to-temporarily-disable-pulseaudio&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122678</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122678"/>
		<updated>2016-04-26T02:57:59Z</updated>

		<summary type="html">&lt;p&gt;J876: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu - why it may not be such a good idea ==&lt;br /&gt;
&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot the Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to enable PulseAudio again ===&lt;br /&gt;
&lt;br /&gt;
* Follow the editing steps for either the local user or globally (all users) and instead of&lt;br /&gt;
: using the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in the relevant configuration file, change the line to either:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or alternatively:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned back on.&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122677</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122677"/>
		<updated>2016-04-26T02:56:18Z</updated>

		<summary type="html">&lt;p&gt;J876: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu, why it may not be such a good idea ==&lt;br /&gt;
&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot the Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to enable PulseAudio again ===&lt;br /&gt;
&lt;br /&gt;
* Follow the editing steps for either the local user or globally (all users) and instead of&lt;br /&gt;
: using the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in the relevant configuration file, change the line to either:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or alternatively:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned back on.&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122676</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122676"/>
		<updated>2016-04-26T02:53:53Z</updated>

		<summary type="html">&lt;p&gt;J876: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu, why it may not be such a good idea ==&lt;br /&gt;
&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot the Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to enable PulseAudio again ===&lt;br /&gt;
&lt;br /&gt;
* Follow the editing steps for either the local user or globally (all users) and instead of&lt;br /&gt;
: using the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in the relevant configuration file, change the line to either:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or alternatively ...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned back on.&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122675</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122675"/>
		<updated>2016-04-26T02:40:22Z</updated>

		<summary type="html">&lt;p&gt;J876: /* How to disable PulseAudio globally (for all users) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu, why it may not be such a good idea ==&lt;br /&gt;
&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;cp /etc/pulse/client.conf /home/yourusername/.config/pulse&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file, as per the following example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122674</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122674"/>
		<updated>2016-04-26T02:22:13Z</updated>

		<summary type="html">&lt;p&gt;J876: /* Removing PulseAudio from Ubuntu - Why it may not be such a good idea */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How does this PulseAudio configuration change work? ==&lt;br /&gt;
&lt;br /&gt;
What these changes do is stop the PulseAudio daemon for autospawning and taking over&lt;br /&gt;
control of the sound devices on your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
== Removing PulseAudio from Ubuntu, why it may not be such a good idea ==&lt;br /&gt;
&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;cp /etc/pulse/client.conf /home/yourusername/.config/pulse&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
nano /home/yourusername/.config/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio globally (for all users) ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp /etc/pulse/client.conf /etc/pulse/client.confbackup&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the global configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/pulse/client.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
; autospawn = yes&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
autospawn = no&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu system.&lt;br /&gt;
&lt;br /&gt;
* PulseAudio should now be turned off.  ALSA will now be used instead.&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122673</id>
		<title>Archive:PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu&amp;diff=122673"/>
		<updated>2016-04-26T02:02:43Z</updated>

		<summary type="html">&lt;p&gt;J876: Created page with &amp;quot;== Removing PulseAudio from Ubuntu - Why it may not be such a good idea ==  In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.  Removing...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Removing PulseAudio from Ubuntu - Why it may not be such a good idea ==&lt;br /&gt;
&lt;br /&gt;
In desktop versions of Ubuntu, PulseAudio is a dependency for a lot of software packages.&lt;br /&gt;
&lt;br /&gt;
Removing or purging PulseAudio from a Ubuntu system can break other software on a&lt;br /&gt;
Ubuntu system and potentially cause errors and broken dependencies.&lt;br /&gt;
&lt;br /&gt;
The method described below, will allow users to turn off PulseAudio and use Advanced Linux Sound Architecture (ALSA)&lt;br /&gt;
instead.&lt;br /&gt;
&lt;br /&gt;
The advantage of this method is the changes can be reversed when PulseAudio needs to be turned on/enabled again.&lt;br /&gt;
&lt;br /&gt;
There are two methods described in this guide for disabling PulseAudio on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
* How to disable PulseAudio for a specific user&lt;br /&gt;
* How to disable PulseAudio globally (for all users)&lt;br /&gt;
&lt;br /&gt;
===== Important Notes =====&lt;br /&gt;
* The following steps should be done via the terminal or via SSH (Secure Services Host) on&lt;br /&gt;
the Ubuntu system to be configured.&lt;br /&gt;
* The user account used to edit/modify the files needs to have sudo rights.&lt;br /&gt;
&lt;br /&gt;
=== How to disable PulseAudio for a specific user ===&lt;br /&gt;
&lt;br /&gt;
* Open a terminal window or SSH into your Ubuntu system.&lt;br /&gt;
* Copy the global PulseAudio configuration file to your user&#039;s local PulseAudio configuration directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;cp /etc/pulse/client.conf /home/yourusername/.config/pulse&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make a backup copy of the global configuration file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;cp /etc/pulse/client.conf /home/yourusername/.config/pulse/client.confbackup&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Open the local configuration file with a text editor such as nano:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;nano /home/yourusername/.config/pulse/client.conf&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;yourusername&#039;&#039; is the Ubuntu user account where PulseAudio is to be disabled.&lt;br /&gt;
&lt;br /&gt;
* Scroll through the configuration file, then uncomment (remove the ; character) and edit the following line:&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&amp;lt;nowiki&amp;gt;; autospawn = yes&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&amp;lt;nowiki&amp;gt;autospawn = no&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Save the file, then exit the text editor.&lt;br /&gt;
&lt;br /&gt;
* Restart/reboot your Ubuntu computer.&lt;br /&gt;
&lt;br /&gt;
*  PulseAudio should now be turned off.  ALSA will be used instead.&lt;/div&gt;</summary>
		<author><name>J876</name></author>
	</entry>
</feed>