Advertisement
Guest User

Untitled

a guest
Nov 25th, 2011
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.29 KB | None | 0 0
  1. ------------------------------------------------------------
  2. /etc/pulse/system.pa
  3. ------------------------------------------------------------
  4. #!/usr/bin/pulseaudio -nF
  5. #
  6. # This file is part of PulseAudio.
  7. #
  8. # PulseAudio is free software; you can redistribute it and/or modify it
  9. # under the terms of the GNU Lesser General Public License as published by
  10. # the Free Software Foundation; either version 2 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # PulseAudio is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. # General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Lesser General Public License
  19. # along with PulseAudio; if not, write to the Free Software Foundation,
  20. # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  21.  
  22. # This startup script is used only if PulseAudio is started per-user
  23. # (i.e. not in system mode)
  24.  
  25. .nofail
  26.  
  27. ### Load something into the sample cache
  28. load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
  29. load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
  30. load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
  31. load-sample-lazy pulse-access /usr/share/sounds/generic.wav
  32.  
  33. .fail
  34.  
  35. ### Automatically restore the volume of streams and devices
  36. load-module module-device-restore
  37. load-module module-stream-restore
  38. load-module module-card-restore
  39.  
  40. ### Automatically augment property information from .desktop files
  41. ### stored in /usr/share/application
  42. #load-module module-augment-properties
  43.  
  44. ### Load audio drivers statically (it's probably better to not load
  45. ### these drivers manually, but instead use module-hal-detect --
  46. ### see below -- for doing this automatically)
  47. #load-module module-alsa-sink
  48. #load-module module-alsa-source device=hw:1,0
  49. #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  50. #oad-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  51. #load-module module-null-sink
  52. #load-module module-pipe-sink
  53.  
  54. ### Automatically load driver modules depending on the hardware available
  55. .ifexists module-udev-detect.so
  56. load-module module-udev-detect
  57. .else
  58. ### Alternatively use the static hardware detection module (for systems that
  59. ### lack udev support)
  60. load-module module-detect
  61. .endif
  62.  
  63. ### Automatically load driver modules for Bluetooth hardware
  64. .ifexists module-bluetooth-discover.so
  65. load-module module-bluetooth-discover
  66. .endif
  67.  
  68. ### Load several protocols
  69. .ifexists module-esound-protocol-unix.so
  70. #load-module module-esound-protocol-unix
  71. .endif
  72. load-module module-native-protocol-unix auth-anonymous=1
  73.  
  74. ### Network access (may be configured with paprefs, so leave this commented
  75. ### here if you plan to use paprefs)
  76. load-module module-esound-protocol-tcp auth-anonymous=1
  77. load-module module-native-protocol-tcp auth-anonymous=1
  78. load-module module-zeroconf-publish
  79.  
  80. ### Load the RTP reciever module (also configured via paprefs, see above)
  81. #load-module module-rtp-recv
  82.  
  83. ### Load the RTP sender module (also configured via paprefs, see above)
  84. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
  85. #load-module module-rtp-send source=rtp.monitor
  86.  
  87. ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
  88. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  89. ### loaded modules.
  90. .ifexists module-gconf.so
  91. .nofail
  92. load-module module-gconf
  93. .fail
  94. .endif
  95.  
  96. ### Automatically restore the default sink/source when changed by the user during runtime
  97. load-module module-default-device-restore
  98.  
  99. ### Automatically move streams to the default sink if the sink they are
  100. ### connected to dies, similar for sources
  101. #load-module module-rescue-streams
  102.  
  103. ### Make sure we always have a sink around, even if it is a null sink.
  104. #load-module module-always-sink
  105.  
  106. ### Honour intended role device property
  107. load-module module-intended-roles
  108.  
  109. ### Automatically suspend sinks/sources that become idle for too long
  110. load-module module-suspend-on-idle
  111.  
  112. ### If autoexit on idle is enabled we want to make sure we only quit
  113. ### when no local session needs us anymore.
  114. load-module module-console-kit
  115.  
  116. ### Enable positioned event sounds
  117. load-module module-position-event-sounds
  118.  
  119. ### Cork music streams when a phone stream is active
  120. load-module module-cork-music-on-phone
  121.  
  122. # X11 modules should not be started from default.pa so that one daemon
  123. # can be shared by multiple sessions.
  124.  
  125. ### Load X11 bell module
  126. #load-module module-x11-bell sample=bell-windowing-system
  127.  
  128. ### Register ourselves in the X11 session manager
  129. #load-module module-x11-xsmp
  130.  
  131. ### Publish connection data in the X11 root window
  132. #.ifexists module-x11-publish.so
  133. #.nofail
  134. #load-module module-x11-publish
  135. #.fail
  136. #.endif
  137.  
  138. ### Make some devices default
  139. #set-default-sink output
  140. #set-default-source input
  141.  
  142.  
  143.  
  144.  
  145. ------------------------------------------------------------
  146. /etc/pulse/daemon.conf
  147. ------------------------------------------------------------
  148. # This file is part of PulseAudio.
  149. #
  150. # PulseAudio is free software; you can redistribute it and/or modify
  151. # it under the terms of the GNU Lesser General Public License as published by
  152. # the Free Software Foundation; either version 2 of the License, or
  153. # (at your option) any later version.
  154. #
  155. # PulseAudio is distributed in the hope that it will be useful, but
  156. # WITHOUT ANY WARRANTY; without even the implied warranty of
  157. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  158. # General Public License for more details.
  159. #
  160. # You should have received a copy of the GNU Lesser General Public License
  161. # along with PulseAudio; if not, write to the Free Software
  162. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  163. # USA.
  164.  
  165. ## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
  166. ## more information. Default values a commented out. Use either ; or # for
  167. ## commenting.
  168.  
  169. daemonize = yes
  170. ; fail = yes
  171. allow-module-loading = no
  172. allow-exit = no
  173. ; use-pid-file = yes
  174. system-instance = yes
  175. enable-shm = no
  176. ; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
  177. ; lock-memory = no
  178. ; cpu-limit = no
  179.  
  180. ; high-priority = yes
  181. ; nice-level = -11
  182.  
  183. ; realtime-scheduling = yes
  184. ; realtime-priority = 5
  185.  
  186. exit-idle-time =
  187. ; scache-idle-time = 20
  188.  
  189. ; dl-search-path = (depends on architecture)
  190.  
  191. ; load-default-script-file = yes
  192. ; default-script-file =
  193.  
  194. ; log-target = auto
  195. ; log-level = notice
  196. ; log-meta = no
  197. ; log-time = no
  198. ; log-backtrace = 0
  199.  
  200. ; resample-method = speex-float-3
  201. ; enable-remixing = yes
  202. ; enable-lfe-remixing = no
  203.  
  204. ; flat-volumes = yes
  205.  
  206. ; rlimit-fsize = -1
  207. ; rlimit-data = -1
  208. ; rlimit-stack = -1
  209. ; rlimit-core = -1
  210. ; rlimit-as = -1
  211. ; rlimit-rss = -1
  212. ; rlimit-nproc = -1
  213. ; rlimit-nofile = 256
  214. ; rlimit-memlock = -1
  215. ; rlimit-locks = -1
  216. ; rlimit-sigpending = -1
  217. ; rlimit-msgqueue = -1
  218. ; rlimit-nice = 31
  219. ; rlimit-rtprio = 9
  220. ; rlimit-rttime = 1000000
  221.  
  222. ; default-sample-format = s16le
  223. ; default-sample-rate = 44100
  224. ; default-sample-channels = 2
  225. ; default-channel-map = front-left,front-right
  226.  
  227. ; default-fragments = 4
  228. ; default-fragment-size-msec = 25
  229.  
  230.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement