Hi all. I now have a pi 3, fresh install of osmc. Using the BT speaker for streaming music. Everything works fine, although sometimes the speaker will be connected and playing music, when all of a sudden there is no sound from the speaker, and the sound is going thru the tv. If i toggle settings --> system -->audio --> Alsa stream to HDMI and back then the audio is back to the speaker, which was connected still connected.
The main issue I have is that if I leave Alsa streaming on for extended period of time, and then if BT speaker is off, the audio is coming out of the TV and it is delayed by ~0.5 seconds. SO i have to go back into settings --> system -->audio and toggle HDMI to get audio to play properly thru the tv.
my idea is to create a script, to toggle HDMI audio when detecting a tvshow or movie, and when it detects audio, to switch to Alsa. Can someone point me to the correct setting that gets toggled when you toggle settings --> system -->audio --> Alsa stream, which would not require a restart of kodi?