Mac Sound Problem

I am using late 2016 13 inch Macbook Pro with touch bar. Ruuning OSX 10.12.3.
I upgraded from Kodi 16 and when I was browsing the film library suddenly there occured great noise and continuing sound like something was broken. When I close the application, this sound stopped.
Does anyone encountered the same problem or can give some hint?
Thanks.Sad