Advertisement
Guest User

default.pa

a guest
Jan 23rd, 2014
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.75 KB | None | 0 0
  1. root@faumi:/home/faumi# cat /etc/pulse/default.pa
  2. #!/usr/bin/pulseaudio -nF
  3. #
  4. # This file is part of PulseAudio.
  5. #
  6. # PulseAudio is free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # PulseAudio is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. # General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU Lesser General Public License
  17. # along with PulseAudio; if not, write to the Free Software Foundation,
  18. # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  19.  
  20. # This startup script is used only if PulseAudio is started per-user
  21. # (i.e. not in system mode)
  22.  
  23. .nofail
  24.  
  25. ### Load something into the sample cache
  26. #load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
  27. #load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
  28. #load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
  29. #load-sample-lazy pulse-access /usr/share/sounds/generic.wav
  30.  
  31. .fail
  32.  
  33. ### Automatically restore the volume of streams and devices
  34. load-module module-device-restore
  35. load-module module-stream-restore
  36. load-module module-card-restore
  37.  
  38. ### Automatically augment property information from .desktop files
  39. ### stored in /usr/share/application
  40. load-module module-augment-properties
  41.  
  42. ### Load audio drivers statically
  43. ### (it's probably better to not load these drivers manually, but instead
  44. ### use module-udev-detect -- see below -- for doing this automatically)
  45. #load-module module-alsa-sink
  46. #load-module module-alsa-source device=hw:1,0
  47. #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  48. #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  49. #load-module module-null-sink
  50. #load-module module-pipe-sink
  51.  
  52. ### Automatically load driver modules depending on the hardware available
  53. .ifexists module-udev-detect.so
  54. load-module module-udev-detect tsched=0
  55. .else
  56. ### Use the static hardware detection module (for systems that lack udev/hal support)
  57. load-module module-detect
  58. .endif
  59.  
  60. ### Automatically connect sink and source if JACK server is present
  61. .ifexists module-jackdbus-detect.so
  62. .nofail
  63. load-module module-jackdbus-detect
  64. .fail
  65. .endif
  66.  
  67. ### Automatically load driver modules for Bluetooth hardware
  68. .ifexists module-bluetooth-discover.so
  69. load-module module-bluetooth-discover
  70. .endif
  71.  
  72. ### Load several protocols
  73. .ifexists module-esound-protocol-unix.so
  74. load-module module-esound-protocol-unix
  75. .endif
  76. load-module module-native-protocol-unix
  77.  
  78. ### Network access (may be configured with paprefs, so leave this commented
  79. ### here if you plan to use paprefs)
  80. #load-module module-esound-protocol-tcp
  81. #load-module module-native-protocol-tcp
  82. #load-module module-zeroconf-publish
  83.  
  84. ### Load the RTP receiver module (also configured via paprefs, see above)
  85. #load-module module-rtp-recv
  86.  
  87. ### Load the RTP sender module (also configured via paprefs, see above)
  88. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
  89. #load-module module-rtp-send source=rtp.monitor
  90.  
  91. ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
  92. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  93. ### loaded modules.
  94. .ifexists module-gconf.so
  95. .nofail
  96. load-module module-gconf
  97. .fail
  98. .endif
  99.  
  100. ### Automatically restore the default sink/source when changed by the user
  101. ### during runtime
  102. ### NOTE: This should be loaded as early as possible so that subsequent modules
  103. ### that look up the default sink/source get the right value
  104. load-module module-default-device-restore
  105.  
  106. ### Automatically move streams to the default sink if the sink they are
  107. ### connected to dies, similar for sources
  108. load-module module-rescue-streams
  109.  
  110. ### Make sure we always have a sink around, even if it is a null sink.
  111. load-module module-always-sink
  112.  
  113. ### Honour intended role device property
  114. load-module module-intended-roles
  115.  
  116. ### Automatically suspend sinks/sources that become idle for too long
  117. load-module module-suspend-on-idle
  118.  
  119. ### If autoexit on idle is enabled we want to make sure we only quit
  120. ### when no local session needs us anymore.
  121. .ifexists module-console-kit.so
  122. load-module module-console-kit
  123. .endif
  124. .ifexists module-systemd-login.so
  125. load-module module-systemd-login
  126. .endif
  127.  
  128. ### Enable positioned event sounds
  129. load-module module-position-event-sounds
  130.  
  131. ### Cork music/video streams when a phone stream is active
  132. load-module module-role-cork
  133.  
  134. ### Modules to allow autoloading of filters (such as echo cancellation)
  135. ### on demand. module-filter-heuristics tries to determine what filters
  136. ### make sense, and module-filter-apply does the heavy-lifting of
  137. ### loading modules and rerouting streams.
  138. load-module module-filter-heuristics
  139. load-module module-filter-apply
  140.  
  141. ### Load DBus protocol
  142. .ifexists module-dbus-protocol.so
  143. load-module module-dbus-protocol
  144. .endif
  145.  
  146. # X11 modules should not be started from default.pa so that one daemon
  147. # can be shared by multiple sessions.
  148.  
  149. ### Load X11 bell module
  150. #load-module module-x11-bell sample=bell-windowing-system
  151.  
  152. ### Register ourselves in the X11 session manager
  153. #load-module module-x11-xsmp
  154.  
  155. ### Publish connection data in the X11 root window
  156. #.ifexists module-x11-publish.so
  157. #.nofail
  158. #load-module module-x11-publish
  159. #.fail
  160. #.endif
  161.  
  162. load-module module-switch-on-port-available
  163.  
  164. ### Make some devices default
  165. #set-default-sink output
  166. #set-default-source input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement