From my experience with this problem (had it on my Xperia Z and Nexus 4) it's to do with the minimum/maximum screen off frequency being too low, the phone will drop to that frequency while sleeping and it won't be a high enough frequency to run the app properly which inevitably leads to the 'buzzing' or 'glitchy' noise that you hear during screen off playback.
This is just how I resolved the stuttering that was occurring on my phones and for all I know the guys on this thread could well be suffering from a completely unrelated issue, but all you need to do is increase your screen off frequency (On my Nexus I only do this to core 0, I keep cores 1, 2 & 3 at 81mhz) to 162mhz and the stuttering should all but disappear (I still get the occasional buzz here and there but I'm a battery saving freak so I put up with it)
Hope I helped guys!
Beans
This is just how I resolved the stuttering that was occurring on my phones and for all I know the guys on this thread could well be suffering from a completely unrelated issue, but all you need to do is increase your screen off frequency (On my Nexus I only do this to core 0, I keep cores 1, 2 & 3 at 81mhz) to 162mhz and the stuttering should all but disappear (I still get the occasional buzz here and there but I'm a battery saving freak so I put up with it)
Hope I helped guys!
Beans