Add support for PipeWire, PulseAudio, and Alsa

Selects the best available audio output backend for mpv.
    
The selection follows a clear priority:
    1. A fully qualified device string (e.g., 'alsa/plughw:...') is used directly.
    2. A simple device name tries PipeWire, then PulseAudio, then ALSA.
    3. No device specified (or 'default') tries the default for PipeWire, PulseAudio, and ALSA in order.
This commit is contained in:
imonlinux
2025-10-14 18:35:30 -07:00
committed by GitHub
parent d98ed168a4
commit 31ea2762a3
+1 -1
View File
@@ -1,6 +1,6 @@
""" """
Media player using mpv in a subprocess. Media player using mpv in a subprocess.
Includes logic to detect the audio server being used (Pirewire, PulseAudio, Alsa).
This refactored version simplifies the audio backend selection logic, This refactored version simplifies the audio backend selection logic,
improves readability with docstrings, and standardizes method signatures. improves readability with docstrings, and standardizes method signatures.
""" """