Differences

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

Link to this comparison view

pulseaudio [2017/03/12 19:24]
0.0.0.0 created
pulseaudio [2017/03/22 21:38] (current)
cvh
Line 4: Line 4:
 Pulseaudio in LibreELEC by default only provides sending audio to a bluetooth device. This guide will show you how to setup various audio methods and various pulseaudio related information. Pulseaudio in LibreELEC by default only provides sending audio to a bluetooth device. This guide will show you how to setup various audio methods and various pulseaudio related information.
  
-Basically you will be using four commands +**Basically you will be using four commands**
-  pactl load-module # used to load a pulseaudio module (not all are loaded by default) +
-  pactl set-default-sink # used to set the pulseaudio output device +
-  pactl set-default-source # used to set the pulseaudio input device +
-  pactl info # used to check what the current sink and source devices are+
  
-sample ​output +//used to load a pulseaudio module (not all are loaded by default)//​ 
-  LibreELEC:~ # pactl info +  pactl load-module 
-  Server String: /​var/​run/​pulse/​native + 
-  Library Protocol Version: 31 +//used to set the pulseaudio ​output ​device// 
-  Server Protocol Version: 31 +  ​pactl set-default-sink 
-  Is Local: yes + 
-  Client Index: 41 +//used to set the pulseaudio input device// 
-  Tile Size: 65472 +  pactl set-default-source 
-  User Name: root + 
-  Host Name: LibreELEC +//used to check what the current sink and source devices are// 
-  Server Name: pulseaudio +  pactl info 
-  ​Server Version: 9.0 + 
-  ​Default Sample Specification:​ s16le 2ch 44100Hz +//sample output// 
-  Default Channel Map: front-left,​front-right +<​konsole>​LibreELEC:~ # pactl info 
-  Default Sink: alsa_output.platform-aml_m8_snd.45.analog-stereo +Server String: /​var/​run/​pulse/​native 
-  Default Source: alsa_input.platform-aml_m8_snd.45.analog-stereo +Library Protocol Version: 31 
-  Cookie: c044:1a61+Server Protocol Version: 31 
 +Is Local: yes 
 +Client Index: 41 
 +Tile Size: 65472 
 +User Name: root 
 +Host Name: LibreELEC 
 +Server Name: pulseaudio 
 +Default Sample Specification:​ s16le 2ch 44100Hz 
 +Default Channel Map: front-left,​front-right 
 +Default Sink: alsa_output.platform-aml_m8_snd.45.analog-stereo 
 +Default Source: alsa_input.platform-aml_m8_snd.45.analog-stereo 
 +Cookie: c044:1a61</​konsole>​
  
  
Line 42: Line 49:
  
 Stop kodi (otherwise it will hold onto the audio output device) Stop kodi (otherwise it will hold onto the audio output device)
- systemctl stop kodi+  ​systemctl stop kodi
  
 load the pulseaudio udev module load the pulseaudio udev module
- pactl load-module module-udev-detect+  ​pactl load-module module-udev-detect
  
 Use pactl to find your output device Use pactl to find your output device
- pactl list short sinks+  ​pactl list short sinks
  
 For example For example
Line 54: Line 61:
  
 Set the output device Set the output device
- pactl set-default-sink alsa_output.platform-aml_m8_snd.45.analog-stereo+  ​pactl set-default-sink alsa_output.platform-aml_m8_snd.45.analog-stereo
  
 Use pactl to find your bluetooth audio device Use pactl to find your bluetooth audio device
  
- pactl list short sources+  ​pactl list short sources
  
 For example For example
- 12 bluez_source.B8_53_AC_01_8F_E7 module-bluez5-device.c s16le 2ch 44100Hz SUSPENDED+  ​12 bluez_source.B8_53_AC_01_8F_E7 module-bluez5-device.c s16le 2ch 44100Hz SUSPENDED
  
 Select the relevant devices as your "​source"​ Select the relevant devices as your "​source"​
- pactl set-default-source bluez_source.B8_53_AC_01_8F_E7+  ​pactl set-default-source bluez_source.B8_53_AC_01_8F_E7
  
 Start kodi Start kodi
- systemctl start kodi+  ​systemctl start kodi
  
 Select the audio output device in Kodi (if you want audio from your device and from playing files in Kodi) Select the audio output device in Kodi (if you want audio from your device and from playing files in Kodi)
Line 88: Line 95:
  
 Start kodi Start kodi
- systemctl start kodi+  ​systemctl start kodi
  
 Then select the default pulseaudio device as the audio output device in kodi. Then select the default pulseaudio device as the audio output device in kodi.
Line 96: Line 103:
  
 Stop kodi (otherwise it will hold onto the audio output device) Stop kodi (otherwise it will hold onto the audio output device)
- systemctl stop kodi+  ​systemctl stop kodi
  
 load the pulseaudio udev module load the pulseaudio udev module
- pactl load-module module-udev-detect+  ​pactl load-module module-udev-detect
  
 Use pactl to find your output device Use pactl to find your output device
- pactl list short sinks+  ​pactl list short sinks
  
 For example For example
Line 108: Line 115:
  
 Set the output device Set the output device
- pactl set-default-sink alsa_output.platform-aml_m8_snd.45.analog-stereo+  ​pactl set-default-sink alsa_output.platform-aml_m8_snd.45.analog-stereo
  
 On a different computer/​device that is running pulse audio all you have to do is load the native-protocol-tcp and zeroconf-discover modules On a different computer/​device that is running pulse audio all you have to do is load the native-protocol-tcp and zeroconf-discover modules
Line 124: Line 131:
  
 Start kodi Start kodi
- systemctl start kodi+  ​systemctl start kodi
  
 ====== Adjusting Pulseaudio Server Settings ====== ====== Adjusting Pulseaudio Server Settings ======