I found the solution in: Audio issue with latest version of RetroPie.
For those who want to know, the solution was to add this to the config.txt file in /boot:
dtparam=audio=onSorry for wasting any time!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.