move direct sound specific behavior into the actual direct sound function instead of into an ifdef
Merge pull request #4447 from Bigpet/DSoundRefactoring

move direct sound specific behavior into the actual direct sound function