I think I found a solution for people having issues with sound over HDMI in Emulationstation only but working fine in Kodi.
Go to Kodi
- Select “Audio Output Devices”
- Now on the device listing, count from the top to the bottom (First Device listed is #0, the second is #1 … and so on)
- Remember which # your working device is (I will use #4 in this example)
Now exit Kodi
- Go to Emulationstation.
- Open ‘batocera.conf’ over Network
- Go to line 59 “Audio”
Change on Line 61:
If your working device in Kodi is at #5 change to audio.device=x,5
After you made a change save your config file and check at emulationstation if sound is working (restart your system).
If you find:
audio.device=0,3 HDMI 0 (for example)
And changing into 0,4 is not working, change the 0 to 1:
audio.device=1,4 HDMI 0
If the solution worked for you, you will find a new device listed under ‘System Settings>Audio Output’ in Emulationstation.
In my case when the sound started to work a new device appeared in the listing: ‘1.4 HDMI 0…’
It’s a weird solution, but surprisingly worked for me just perfect 😅