mirror of
https://github.com/lutris/lutris
synced 2024-10-14 11:42:36 +00:00
Remove reset Pulseaudio option because it's 2024 and we use Pipewire
This commit is contained in:
parent
558a62c8b6
commit
2e55201467
|
@ -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")
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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")
|
|
@ -34,9 +34,7 @@ SYSTEM_COMPONENTS = {
|
|||
"fluidsynth",
|
||||
],
|
||||
"OPTIONAL_COMMANDS": [
|
||||
"pulseaudio",
|
||||
"lsi-steam",
|
||||
"Xephyr",
|
||||
"nvidia-smi",
|
||||
],
|
||||
"TERMINALS": [
|
||||
|
|
Loading…
Reference in a new issue