Fix sound errors when no sound card is detected.
Based on a patch by: @Imarok Refs: #3285
Differential Revision: https://code.wildfiregames.com/D1481