spacepaste

  1.  
  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, see <http://www.gnu.org/licenses/>.
  18. # This startup script is used only if PulseAudio is started per-user
  19. # (i.e. not in system mode)
  20. .fail
  21. ### Automatically restore the volume of streams and devices
  22. load-module module-device-restore
  23. load-module module-stream-restore
  24. load-module module-card-restore
  25. ### Automatically augment property information from .desktop files
  26. ### stored in /usr/share/application
  27. load-module module-augment-properties
  28. ### Should be after module-*-restore but before module-*-detect
  29. load-module module-switch-on-port-available
  30. ### Load audio drivers statically
  31. ### (it's probably better to not load these drivers manually, but instead
  32. ### use module-udev-detect -- see below -- for doing this automatically)
  33. #load-module module-alsa-sink
  34. #load-module module-alsa-source device=hw:1,0
  35. #load-module module-null-sink
  36. #load-module module-pipe-sink
  37. ### Automatically load driver modules depending on the hardware available
  38. .ifexists module-udev-detect.so
  39. load-module module-udev-detect
  40. .else
  41. ### Use the static hardware detection module (for systems that lack udev support)
  42. load-module module-detect
  43. .endif
  44. ### Automatically connect sink and source if JACK server is present
  45. .ifexists module-jackdbus-detect.so
  46. .nofail
  47. load-module module-jackdbus-detect channels=2
  48. .fail
  49. .endif
  50. ### Automatically load driver modules for Bluetooth hardware
  51. .ifexists module-bluetooth-policy.so
  52. load-module module-bluetooth-policy
  53. .endif
  54. .ifexists module-bluetooth-discover.so
  55. load-module module-bluetooth-discover
  56. .endif
  57. ### Load several protocols
  58. .ifexists module-esound-protocol-unix.so
  59. load-module module-esound-protocol-unix
  60. .endif
  61. load-module module-native-protocol-unix
  62. ### Network access (may be configured with paprefs, so leave this commented
  63. ### here if you plan to use paprefs)
  64. #load-module module-esound-protocol-tcp
  65. #load-module module-native-protocol-tcp
  66. ### Load the RTP receiver module (also configured via paprefs, see above)
  67. #load-module module-rtp-recv
  68. ### Load the RTP sender module (also configured via paprefs, see above)
  69. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
  70. #load-module module-rtp-send source=rtp.monitor
  71. ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
  72. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  73. ### loaded modules.
  74. .ifexists module-gconf.so
  75. .nofail
  76. load-module module-gconf
  77. .fail
  78. .endif
  79. ### Automatically restore the default sink/source when changed by the user
  80. ### during runtime
  81. ### NOTE: This should be loaded as early as possible so that subsequent modules
  82. ### that look up the default sink/source get the right value
  83. load-module module-default-device-restore
  84. ### Automatically move streams to the default sink if the sink they are
  85. ### connected to dies, similar for sources
  86. load-module module-rescue-streams
  87. ### Make sure we always have a sink around, even if it is a null sink.
  88. load-module module-always-sink
  89. ### Honour intended role device property
  90. load-module module-intended-roles
  91. ### Automatically suspend sinks/sources that become idle for too long
  92. load-module module-suspend-on-idle
  93. ### If autoexit on idle is enabled we want to make sure we only quit
  94. ### when no local session needs us anymore.
  95. .ifexists module-console-kit.so
  96. load-module module-console-kit
  97. .endif
  98. .ifexists module-systemd-login.so
  99. load-module module-systemd-login
  100. .endif
  101. ### Enable positioned event sounds
  102. load-module module-position-event-sounds
  103. ### Cork music/video streams when a phone stream is active
  104. load-module module-role-cork
  105. ### Modules to allow autoloading of filters (such as echo cancellation)
  106. ### on demand. module-filter-heuristics tries to determine what filters
  107. ### make sense, and module-filter-apply does the heavy-lifting of
  108. ### loading modules and rerouting streams.
  109. load-module module-filter-heuristics
  110. load-module module-filter-apply
  111. ### Make some devices default
  112. #set-default-sink output
  113. #set-default-source input
  114.