TechInATux
Hope this helps as this post started me down the right line and fixed my issue and thought I’d post here to make it easier as that command line didn’t work for me.
I googled direct x downloads, one on Microsoft website downloads installer which downloads all directx files which then sorted out no sound issue for me which has bothered me for months now. Thanks to the other replies in the post for heading me in the right direction