Remove reset Pulseaudio option because it's 2024 and we use Pipewire

This commit is contained in:
Mathieu Comandon 2024-02-24 21:32:46 -08:00
parent 558a62c8b6
commit 2e55201467
4 changed files with 0 additions and 32 deletions

View file

@ -686,10 +686,6 @@ class Game(GObject.Object):
if "working_dir" in gameplay_info:
self.game_runtime_config["working_dir"] = gameplay_info["working_dir"]
# Audio control
if self.runner.system_config.get("reset_pulse"):
audio.reset_pulse()
# Input control
if self.runner.system_config.get("use_us_layout"):
system.set_keyboard_layout("us")

View file

@ -317,16 +317,6 @@ system_options = [ # pylint: disable=invalid-name
"label": _("Enable Feral GameMode"),
"help": _("Request a set of optimisations be temporarily applied to the host OS"),
},
{
"section": _("Audio"),
"option": "reset_pulse",
"type": "bool",
"label": _("Reset PulseAudio"),
"default": False,
"advanced": True,
"condition": system.can_find_executable("pulseaudio"),
"help": _("Restart PulseAudio before launching the game."),
},
{
"section": _("Audio"),
"option": "pulse_latency",

View file

@ -1,16 +0,0 @@
"""Whatever it is we want to do with audio module"""
import time
from lutris.util import system
from lutris.util.log import logger
def reset_pulse():
"""Reset pulseaudio."""
if not system.can_find_executable("pulseaudio"):
logger.warning("PulseAudio not installed. Nothing to do.")
return
system.execute(["pulseaudio", "--kill"])
time.sleep(1)
system.execute(["pulseaudio", "--start"])
logger.debug("PulseAudio restarted")

View file

@ -34,9 +34,7 @@ SYSTEM_COMPONENTS = {
"fluidsynth",
],
"OPTIONAL_COMMANDS": [
"pulseaudio",
"lsi-steam",
"Xephyr",
"nvidia-smi",
],
"TERMINALS": [