Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pulseaudio real-time and high-priority scheduling modes configurable #3893

Merged
merged 1 commit into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion fs/etc/xpra/conf.d/60_server.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ start-new-commands = yes
pulseaudio = %(pulseaudio)s

# pulseaudio server start command:
pulseaudio-command = %(pulseaudio_command)s
#pulseaudio-command = %(pulseaudio_command)s
# Note: only uncomment the above setting if you want to adjust the
# pulseaudio command string, so the actual default value can depend on
# the XPRA_PULSEAUDIO_* environment variables.

# commands used to configure the pulseaudio server:
# pactl set-source-volume SomeSource 20%%
Expand Down
6 changes: 6 additions & 0 deletions xpra/scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,12 @@ def get_default_pulseaudio_command() -> List[str]:
MEMFD = envbool("XPRA_PULSEAUDIO_MEMFD", False)
if not MEMFD:
cmd.append("--enable-memfd=no")
REALTIME = envbool("XPRA_PULSEAUDIO_REALTIME", True)
if not REALTIME:
cmd.append("--realtime=no")
HIGH_PRIORITY = envbool("XPRA_PULSEAUDIO_HIGH_PRIORITY", True)
if not HIGH_PRIORITY:
cmd.append("--high-priority=no")
return cmd


Expand Down