Use DirectSound on windows.
Microoptimizations and a crash fix.