veldenb / plugin.program.moonlight-qt

A launcher and updater for running Moonlight-qt on LibreELEC.
GNU General Public License v3.0
88 stars 12 forks source link

(Question) Use Pulseaudio audio card? // Solved with workaround. #8

Closed elbolutony closed 3 years ago

elbolutony commented 3 years ago

Hi, there's a way to use a PA card? Mi main audio card is plugged into a router with OpenWRT and routed through PulseAudio.
My autostart.sh in LibreELEC makes it the default audio card in Kodi. But this plugin/add-on uses ALSA.

Thanks!

elbolutony commented 3 years ago

Update: i've solved it modifiying the bootstrap_moonlight-qt.sh script but any update will undo this workaround, so i'll leave this Issue open. Thanks again!

bootstrap_moonlight-qt.zip

veldenb commented 3 years ago

Maybe, I will have to figure out a way to detect if the audio device is using pulseaudio or not. Another option could be an extra configuration item.

edit: hacking the bootstrap will indeed work as a workaround :)

elbolutony commented 3 years ago

IMHO an option is acceptable, defaulting to ALSA and PA as an option for being a non-standard setup.

veldenb commented 3 years ago

Can you check if this version works for you? It should detect PulseAudio automatically and configure the audio device you configured in Kodi. It should now essentially do the same for pulse as it does for ALSA.

plugin.program.moonlight-qt.zip

elbolutony commented 3 years ago

Hi veldenb, just tested, it works, awesome. Closing this issue, thanks.