Cleanup of DirectSound
Fixes warning and errors in debug mode. Please merge.
Merge pull request #523 from RobertBColton/master

Cleanup of DirectSound