Advertisement
Guest User

Untitled

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