Cleanup of DirectSound

Fixes warning and errors in debug mode. Please merge.