pulse-server: add pulse.allow-module-loading option

Add an option to disable loading and unloading of modules with the
native protocol.

Document some more options.
This commit is contained in:
Wim Taymans 2024-05-06 15:28:43 +02:00
parent a3ccbd00b4
commit a30c27dce0
4 changed files with 52 additions and 0 deletions

View file

@ -63,6 +63,8 @@
* # client.access = "restricted" # permissions for clients
* #}
* ]
* #server.dbus-name = "org.pulseaudio.Server"
* #pulse.allow-module-loading = true
* #pulse.min.req = 128/48000 # 2.7ms
* #pulse.default.req = 960/48000 # 20 milliseconds
* #pulse.min.frag = 128/48000 # 2.7ms
@ -71,7 +73,9 @@
* #pulse.min.quantum = 128/48000 # 2.7ms
* #pulse.default.format = F32
* #pulse.default.position = [ FL FR ]
* #pulse.idle.timeout = 0
* }
*
* pulse.properties.rules = [
* { matches = [ { cpu.vm.name = !null } ]
* actions = {
@ -117,6 +121,20 @@
* By default network access is given the "restricted" permissions. The session manager is responsible
* for assigning permission to clients with restricted permissions (usually read-only permissions).
*
*\code{.unparsed}
* server.dbus-name = "org.pulseaudio.Server"
*\endcode
*
* The DBus name to reserve for the server. If you have multiple servers, you might want
* to change the name.
*
*\code{.unparsed}
* pulse.allow-module-loading = true
*\endcode
*
* By default, clients are allowed to load and unload modules. You can disable this
* feature with this option.
*
* ### Playback buffering options
*
*\code{.unparsed}
@ -217,6 +235,16 @@
* Normally the channels would be fixed to the sink/source that the stream connects
* to. When an invalid position (null or "") is set, the FIX_CHANNELS flag is ignored.
*
*\code{.unparsed}
* pulse.idle.timeout = 0
*\endcode
*
* Some clients are not sending data when they should and cause underruns. When
* setting this option such clients will be set to paused if they underrun
* for the given amount of seconds. This makes sure that sinks can suspend and
* save battery power. When the client resumes, it will unpause again.
* A value of 0 disables this feature.
*
* ## Command execution
*
* As part of the server startup sequence, a set of commands can be executed.
@ -286,6 +314,7 @@
* update-props = {
* pulse.min.req = 1024/48000 # 21ms
* pulse.min.quantum = 1024/48000 # 21ms
* pulse.idle.timeout = 5 # pause after 5 seconds of underrun
* }
* }
* }
@ -341,6 +370,7 @@
* update-props = {
* pulse.min.req = 1024/48000 # 21ms
* pulse.min.quantum = 1024/48000 # 21ms
* pulse.idle.timeout = 5 # pause after 5 seconds of underrun
* }
* }
* }