Advertisement
Guest User

Untitled

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