Kodi 17 crackling audio

I downloaded Kodi 17 on my MacBook Air and am thrilled with the set and choices. However, the audio crackles every so often. I stream Kodi from my laptop to my Samsung TV through Mirror App for Samsung. How can I fix this?[/size]