Audio force Alsa - Kodi
Kodi flatpak needs alsa for pass thru audio to work. This is typically accomplished by passing the
KODI_AE_SINK=ALSA
variable, or disabling access to pulse in flatseal.
Neither of these seem to work on my HTPC deck image.
Is there another way to force an app to use alsa exclusively perhaps?Solution:Jump to solution
1. Disable Kodi's access to pulse audio backend, I did this in flatseal, but you could do it in the launch command.
2. Configure pipewire to allow pass-thru protocols, this can be done by creating a wireplumber config as described here: https://forum.kodi.tv/showthread.php?tid=374663&pid=3192930#pid3192930
3. Launch kodi with the
--audio-backend=alsa
switch
I had issues with launching from steam in game mode this way, steam wouldn't have audio when I exited the Kodi app. As a solution I created a simple bash scirpt to monitor Kodi's PID, and restart pipewire, wireplumber and steam when Kodi is closed. Not an elegant solution, but I am not an elegant man :coolfingergunscry:...2 Replies
Ok, I think I got this hammered out, for anyone else that needs a solution, here is what I did:
Solution
1. Disable Kodi's access to pulse audio backend, I did this in flatseal, but you could do it in the launch command.
2. Configure pipewire to allow pass-thru protocols, this can be done by creating a wireplumber config as described here: https://forum.kodi.tv/showthread.php?tid=374663&pid=3192930#pid3192930
3. Launch kodi with the
--audio-backend=alsa
switch
I had issues with launching from steam in game mode this way, steam wouldn't have audio when I exited the Kodi app. As a solution I created a simple bash scirpt to monitor Kodi's PID, and restart pipewire, wireplumber and steam when Kodi is closed. Not an elegant solution, but I am not an elegant man :coolfingergunscry: