Very loud pop at random when playing DTS-HD movies

So I have been experiencing something really weird with Kodi in my home theater.

Running off an HTPC with an nvidia gtx 980ti and I noticed that only when I play movies that use DTS-HD tracks I get a very loud pop at random, so loud that it could possibly damage speakers.

I have Kodi hooked up to my Marantz 8802 processor and I have never had this happen before. I use Wasapi instead of DirectSound because I can’t get DTS HD or Dolby TrueHD through direct sound.

Whatever information you guys need me to provide please let me know and hopefully with your help I can resolve this issue.

Edit: forgot to mention I am on Kodi 16 not 17.