Advertisement
Guest User

OpenWRT Pulseaudio default default.pa

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