Kodi Community Forum
RPI4 LE 10.0 dual audio mode: simultaneously Bluetooth and HDMI - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Raspberry Pi (https://forum.kodi.tv/forumdisplay.php?fid=166)
+---- Thread: RPI4 LE 10.0 dual audio mode: simultaneously Bluetooth and HDMI (/showthread.php?tid=366533)



RPI4 LE 10.0 dual audio mode: simultaneously Bluetooth and HDMI - Gramz - 2022-01-15

Hello

I have Raspberry Pi 4 with LibreElec 10.0 connected to my TV by HDMI cable.

I would like to watch movies on Kodi in dual audio mode: sound simultaneously on two Bluetooth headphones 
I think the best solution will be connect one BT headphone to RPI4 and second one to TV bluetooth
So I need sound from RPI and from TV at  the same time

What I tried already:
1. activated dtparam=audio=on in config.txt
2. I think that Pulseuadio is necessary so create new file "custom.conf" in folder /storage/.config/pulse-daemon.conf.d
with line:
"load-module module-combine-sink sink_name=combined"

Unfortunately this not help

Could you please help me configure module-combine-sink in proper way to have sound on 2 BT headphones.
Or maybe you have any other idea how to configure?
I will be grateful for any help


RE: RPI4 LE 10.0 dual audio mode: simultaneously Bluetooth and HDMI - popcornmix - 2022-01-17

Not something I've done, but a user had some success here.


RE: RPI4 LE 10.0 dual audio mode: simultaneously Bluetooth and HDMI - Gramz - 2022-01-18

(2022-01-17, 14:54)popcornmix Wrote: Not something I've done, but a user had some success here.
Thank you.
Finally I manage to do it.

Solution is very easy, so I leave it for others:
1. Folder /storage/.config
2. Create file: autostart.sh
3. Write lines:
pactl load-module module-udev-detect
pactl load-module module-combine-sink 
slaves=alsa_output.0.hdmi-stereo,bluez_sink.00_1B_66_CE_7F_96.a2dp_sink

4. Change above device.string to your BT string
5. You can get it with command in SSH: "pactl list cards"

That's all now I have simultaneously audio in BT headset connected to RPI and in BT headset connected to my TV