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

Advertising

Something
Wednesday, April 30th, 2008 at 11:32:10pm 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. ### Automatically suspend sinks/sources that become idle for too long
  20. load-module module-suspend-on-idle
  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. ### Load audio drivers statically (it's probably better to not load
  33. ### these drivers manually, but instead use module-hal-detect --
  34. ### see below -- for doing this automatically)
  35. .nofail
  36. load-module module-alsa-sink device=dmix
  37. load-module module-alsa-source device=dsnoop
  38. #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  39. #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  40. #load-module module-null-sink
  41. #load-module module-pipe-sink
  42. .fail
  43.  
  44. ### Automatically load driver modules depending on the hardware available
  45. .ifexists /usr/lib/pulse-0.9/modules//module-hal-detect.so
  46. load-module module-hal-detect
  47. .else
  48. ### Alternatively use the static hardware detection module (for systems that
  49. ### lack HAL support)
  50. load-module module-detect
  51. .endif
  52.  
  53. ### Load several protocols
  54. load-module module-esound-protocol-unix
  55. load-module module-native-protocol-unix
  56.  
  57. ### Network access (may be configured with paprefs, so leave this commented
  58. ### here if you plan to use paprefs)
  59. #load-module module-esound-protocol-tcp
  60. #load-module module-native-protocol-tcp
  61. #load-module module-zeroconf-publish
  62.  
  63. ### Load the RTP reciever module (also configured via paprefs, see above)
  64. #load-module module-rtp-recv
  65.  
  66. ### Load the RTP sender module (also configured via paprefs, see above)
  67. #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
  68. #load-module module-rtp-send source=rtp.monitor
  69.  
  70. ### Automatically restore the volume of playback streams
  71. load-module module-volume-restore
  72.  
  73. ### Automatically restore the default sink/source when changed by the user during runtime
  74. load-module module-default-device-restore
  75.  
  76. ### Automatically move streams to the default sink if the sink they are
  77. ### connected to dies, similar for sources
  78. load-module module-rescue-streams
  79.  
  80. ### Load X11 bell module
  81. #load-module module-x11-bell sample=x11-bell
  82.  
  83. ### Publish connection data in the X11 root window
  84. .ifexists /usr/lib/pulse-0.9/modules//module-x11-publish.so
  85. load-module module-x11-publish
  86. .endif
  87.  
  88. ### Register ourselves in the X11 session manager
  89. # Deactivated by default, to avoid deadlock when PA is started as esd from gnome-session
  90. # Instead we load this via /etc/xdg/autostart/ and "pactl load-module" now
  91. # load-module module-x11-xsmp
  92.  
  93. ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
  94. ### Please keep in mind that the modules configured by paprefs might conflict with manually
  95. ### loaded modules.
  96. .ifexists /usr/lib/pulse-0.9/modules//module-gconf.so
  97. load-module module-gconf
  98. .endif
  99.  
  100. ### Make some devices default
  101. #set-default-sink output
  102. #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