Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Untitled
Saturday, July 28th, 2012 at 9:45:47am UTC 

  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/linuxmint-login.wav
  27. #load-sample-lazy pulse-coldplug /usr/share/sounds/linuxmint-login.wav
  28. #load-sample-lazy pulse-access /usr/share/sounds/generic.wav
  29. load-sample-dir-lazy /usr/share/sounds/LinuxMint/stereo
  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. load-module module-alsa-sink sink_name=front_stereo device=hw:0 channels=4 channel_map=front-left,front-right,aux0,aux1
  53.  
  54. load-module module-remap-sink sink_name=rear_stereo master=front_stereo channels=2 master_channel_map=aux0,aux1 channel_map=front-left,front-right
  55.  
  56. ### Automatically load driver modules depending on the hardware available
  57. .ifexists module-udev-detect.so
  58. #load-module module-udev-detect
  59. .else
  60. ### Use the static hardware detection module (for systems that lack udev/hal support)
  61. #load-module module-detect
  62. .endif
  63.  
  64. ### Automatically connect sink and source if JACK server is present
  65. .ifexists module-jackdbus-detect.so
  66. .nofail
  67. load-module module-jackdbus-detect
  68. .fail
  69. .endif
  70.  
  71. ### Automatically load driver modules for Bluetooth hardware
  72. .ifexists module-bluetooth-discover.so
  73. load-module module-bluetooth-discover
  74. .endif
  75.  
  76. ### Load several protocols
  77. .ifexists module-esound-protocol-unix.so
  78. load-module module-esound-protocol-unix
  79. .endif
  80. load-module module-native-protocol-unix
  81.  
  82. ### Network access (may be configured with paprefs, so leave this commented
  83. ### here if you plan to use paprefs)
  84. #load-module module-esound-protocol-tcp
  85. #load-module module-native-protocol-tcp
  86. #load-module module-zeroconf-publish
  87.  
  88. ### Load the RTP receiver module (also configured via paprefs, see above)
  89. #load-module module-rtp-recv
  90.  
  91. ### Load the RTP sender module (also configured via paprefs, see above)
  92. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
  93. #load-module module-rtp-send source=rtp.monitor
  94.  
  95. ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
  96. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  97. ### loaded modules.
  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. load-module module-switch-on-port-available
  164.  
  165. ### Make some devices default
  166. #set-default-sink output
  167. #set-default-source input

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right