SHARE
TWEET

Config pulseaudio Gentoo

a guest Sep 15th, 2012 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ############ Fichier default.pa : #############
  2.  
  3. #!/usr/bin/pulseaudio -nF
  4. #
  5. # This file is part of PulseAudio.
  6. #
  7. # PulseAudio is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation; either version 2 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # PulseAudio is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. # General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Lesser General Public License
  18. # along with PulseAudio; if not, write to the Free Software Foundation,
  19. # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  20.  
  21. # This startup script is used only if PulseAudio is started per-user
  22. # (i.e. not in system mode)
  23.  
  24. .nofail
  25.  
  26. ### Load something into the sample cache
  27. #load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
  28. #load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
  29. #load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
  30. #load-sample-lazy pulse-access /usr/share/sounds/generic.wav
  31.  
  32. .fail
  33.  
  34. ### Automatically restore the volume of streams and devices
  35. load-module module-device-restore
  36. load-module module-stream-restore
  37. load-module module-card-restore
  38.  
  39. ### Automatically augment property information from .desktop files
  40. ### stored in /usr/share/application
  41. load-module module-augment-properties
  42.  
  43. ### Load audio drivers statically
  44. ### (it's probably better to not load these drivers manually, but instead
  45. ### use module-udev-detect -- see below -- for doing this automatically)
  46. #load-module module-alsa-sink
  47. #load-module module-alsa-source device=hw:1,0
  48.  
  49. # Bug Skype for testing http://forums.gentoo.org/viewtopic-t-912344-start-0.html
  50. #load-module module-alsa-sink
  51. #load-module module-alsa-source device=hw:1,0
  52.  
  53. #load-module module-null-sink
  54. #load-module module-pipe-sink
  55.  
  56. ### Automatically load driver modules depending on the hardware available
  57. .ifexists module-udev-detect.so
  58. load-module module-udev-detect
  59. # modify as http://forum.ubuntu-fr.org/viewtopic.php?pid=7310371#p7310371
  60. #load-module module-udev-detect tsched=0
  61.  
  62. .else
  63. ### Use the static hardware detection module (for systems that lack udev/hal support)
  64. load-module module-detect
  65. .endif
  66.  
  67. ### Automatically connect sink and source if JACK server is present
  68. .ifexists module-jackdbus-detect.so
  69. .nofail
  70. load-module module-jackdbus-detect
  71. .fail
  72. .endif
  73.  
  74.  
  75. ### Load several protocols
  76. .ifexists module-esound-protocol-unix.so
  77. load-module module-esound-protocol-unix
  78. .endif
  79. load-module module-native-protocol-unix
  80.  
  81. ### Network access (may be configured with paprefs, so leave this commented
  82. ### here if you plan to use paprefs)
  83. #load-module module-esound-protocol-tcp
  84. #load-module module-native-protocol-tcp
  85.  
  86. ### Load the RTP receiver module (also configured via paprefs, see above)
  87. #load-module module-rtp-recv
  88.  
  89. ### Load the RTP sender module (also configured via paprefs, see above)
  90. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
  91. #load-module module-rtp-send source=rtp.monitor
  92.  
  93. ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
  94. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  95. ### loaded modules.
  96.  
  97.  
  98. .ifexists module-gconf.so
  99. .nofail
  100. load-module module-gconf
  101. .fail
  102. .endif
  103.  
  104. ### Automatically restore the default sink/source when changed by the user
  105. ### during runtime
  106. ### NOTE: This should be loaded as early as possible so that subsequent modules
  107. ### that look up the default sink/source get the right value
  108. load-module module-default-device-restore
  109.  
  110. ### Automatically move streams to the default sink if the sink they are
  111. ### connected to dies, similar for sources
  112. load-module module-rescue-streams
  113.  
  114. ### Make sure we always have a sink around, even if it is a null sink.
  115. load-module module-always-sink
  116.  
  117. ### Honour intended role device property
  118. load-module module-intended-roles
  119.  
  120. ### Automatically suspend sinks/sources that become idle for too long
  121. load-module module-suspend-on-idle
  122.  
  123. ### If autoexit on idle is enabled we want to make sure we only quit
  124. ### when no local session needs us anymore.
  125. .ifexists module-console-kit.so
  126. load-module module-console-kit
  127. .endif
  128.  
  129. ### Enable positioned event sounds
  130. load-module module-position-event-sounds
  131.  
  132. ### Cork music streams when a phone stream is active
  133. load-module module-cork-music-on-phone
  134.  
  135. ### Modules to allow autoloading of filters (such as echo cancellation)
  136. ### on demand. module-filter-heuristics tries to determine what filters
  137. ### make sense, and module-filter-apply does the heavy-lifting of
  138. ### loading modules and rerouting streams.
  139. load-module module-filter-heuristics
  140. load-module module-filter-apply
  141.  
  142. ### Load DBus protocol
  143. .ifexists module-dbus-protocol.so
  144. load-module module-dbus-protocol
  145. .endif
  146.  
  147. # X11 modules should not be started from default.pa so that one daemon
  148. # can be shared by multiple sessions.
  149.  
  150. ### Load X11 bell module
  151. #load-module module-x11-bell sample=bell-windowing-system
  152.  
  153. ### Register ourselves in the X11 session manager
  154. #load-module module-x11-xsmp
  155.  
  156. ### Publish connection data in the X11 root window
  157. #.ifexists module-x11-publish.so
  158. #.nofail
  159. #load-module module-x11-publish
  160. #.fail
  161. #.endif
  162.  
  163. ### Make some devices default
  164. #set-default-sink output
  165. #set-default-source input
  166.  
  167. ############ Fichier system.pa : ##############
  168.  
  169. #!/usr/bin/pulseaudio -nF
  170. #
  171. # This file is part of PulseAudio.
  172. #
  173. # PulseAudio is free software; you can redistribute it and/or modify it
  174. # under the terms of the GNU Lesser General Public License as published by
  175. # the Free Software Foundation; either version 2 of the License, or
  176. # (at your option) any later version.
  177. #
  178. # PulseAudio is distributed in the hope that it will be useful, but
  179. # WITHOUT ANY WARRANTY; without even the implied warranty of
  180. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  181. # General Public License for more details.
  182. #
  183. # You should have received a copy of the GNU Lesser General Public License
  184. # along with PulseAudio; if not, write to the Free Software Foundation,
  185. # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  186.  
  187. # This startup script is used only if PulseAudio is started in system
  188. # mode.
  189.  
  190. ### Automatically load driver modules depending on the hardware available
  191. .ifexists module-udev-detect.so
  192. load-module module-udev-detect
  193. .else
  194. ### Use the static hardware detection module (for systems that lack udev/hal support)
  195. load-module module-detect
  196. .endif
  197.  
  198. ### Load several protocols
  199. .ifexists module-esound-protocol-unix.so
  200. load-module module-esound-protocol-unix
  201. .endif
  202. load-module module-native-protocol-unix
  203.  
  204. ### Automatically restore the volume of streams and devices
  205. load-module module-stream-restore
  206. load-module module-device-restore
  207.  
  208. ### Automatically restore the default sink/source when changed by the user
  209. ### during runtime
  210. ### NOTE: This should be loaded as early as possible so that subsequent modules
  211. ### that look up the default sink/source get the right value
  212. load-module module-default-device-restore
  213.  
  214. .ifexists module-dbus-protocol.so
  215. ### If you want to allow TCP connections, set access to "remote" or "local,remote".
  216. load-module module-dbus-protocol access=local
  217. .endif
  218.  
  219. ### Automatically move streams to the default sink if the sink they are
  220. ### connected to dies, similar for sources
  221. load-module module-rescue-streams
  222.  
  223. ### Make sure we always have a sink around, even if it is a null sink.
  224. load-module module-always-sink
  225.  
  226. ### Automatically suspend sinks/sources that become idle for too long
  227. load-module module-suspend-on-idle
  228.  
  229. ### Enable positioned event sounds
  230. load-module module-position-event-sounds
  231.  
  232. ########### Fichier client.conf : ############
  233.  
  234. # This file is part of PulseAudio.
  235. #
  236. # PulseAudio is free software; you can redistribute it and/or modify
  237. # it under the terms of the GNU Lesser General Public License as published by
  238. # the Free Software Foundation; either version 2 of the License, or
  239. # (at your option) any later version.
  240. #
  241. # PulseAudio is distributed in the hope that it will be useful, but
  242. # WITHOUT ANY WARRANTY; without even the implied warranty of
  243. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  244. # General Public License for more details.
  245. #
  246. # You should have received a copy of the GNU Lesser General Public License
  247. # along with PulseAudio; if not, write to the Free Software
  248. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  249. # USA.
  250.  
  251. ## Configuration file for PulseAudio clients. See pulse-client.conf(5) for
  252. ## more information. Default values are commented out.  Use either ; or # for
  253. ## commenting.
  254.  
  255. ; default-sink =
  256. ; default-source =
  257. ; default-server =
  258. ; default-dbus-server =
  259.  
  260. ; autospawn = yes
  261. ; daemon-binary = /usr/bin/pulseaudio
  262. ; extra-arguments = --log-target=syslog
  263.  
  264. ; cookie-file =
  265.  
  266. ; enable-shm = yes
  267. ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
  268.  
  269. ; auto-connect-localhost = no
  270. ; auto-connect-display = no
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top