Refactored DirectSound with the same changes as OpenAL.