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

No Audio - Failed to open audio device: Could not connect PulseAudio stream #75

Open screwyse opened 1 month ago

screwyse commented 1 month ago

Hello,

I'm on a Raspberry pi 4B and I use LibreElec 11+ (Nexus) and the v0.4.4 of the moonlight-qt addon.

Audio doesn't work for me here but works well in kodi. My default configuration output in kodi is PULSE: Default, Bluetooth Audio (PULSEAUDIO) but I've tried with all the other output in Kodi (ALSA). Each output works fine in Kodi but not in moonlight.

Here is my moonlight-qt.log moonlight-qt.log

I'v read most of the issues about it but it doesn't helped me so...please help me

Thanks in advance

veldenb commented 1 month ago

Can you send your /storage/.kodi/kodi.log when you try your pulseaudio device?

screwyse commented 1 month ago

Can you send your /storage/.kodi/kodi.log when you try your pulseaudio device?

Thank you for your help Here is my kodi.log 01_KODI.log

veldenb commented 1 month ago

Did you select a specific pulseaudio device in Kodi? The plugin tries to select the "default" device:

2024-08-08 19:40:31.253 T:5799     info <general>: Launching moonlight-qt: systemd-run --setenv=ADDON_PROFILE_PATH="/storage/.kodi/userdata/addon_data/plugin.program.moonlight-qt" --setenv=PULSE_SINK="Default" bash /storage/.kodi/addons/plugin.program.moonlight-qt/resources/bin/launch_moonlight-qt.sh
screwyse commented 1 month ago

Did you select a specific pulseaudio device in Kodi? The plugin tries to select the "default" device:

No I didn't. I have only one pulseaudio device. Here is my audio device list :

ALSA: Default (vc4-hdmi-0 MAI PCM i2s-hifi-0 () ALSA: vc4-hdmi-0 (), MAI PCM i2s-hifi-0 ALSA: vc4-hdmi-0 (vc4hdmi0), MAI PCM i2s-hifi-0 ALSA: vc4-hdmi-0 (vc4hdmi0), CAS CASIO-PJ on HDMI PULSE: Default, Bluetooth Audio (PULSEAUDIO)