I know this has been talked about for years .. but most of the time I test with sound disabled it makes no sense unless you are hitting 60fps.
In debug mode, in visual studio the sound is perfect. Well it sounds as it should. But this is what the release build sounds like when compiled in visual studio 2017 ..
https://www.youtube.com/watch?v=mcinDcGD6GA
The audio is absolutely destroyed. I don't think the compiler is at fault here.. My best guess is there are some kind of illegal memory writes happening, and it's not an issue in debug mode due to extra memory padding. Could be that or some variable initialisation issue ..