Fixed crash with sound when no device is present

I forgot to enable my sound card, which caused a crash in the game when trying to play sounds. This fix checks if a non-silent audio device is loaded before trying to set it's properties.