Default [Q] AOSP sound/audio glitches

So on every AOSP ROM I install I seem to get a buzzing sound similar to when you are listening to a CD and it is scratched and the audio stutters. I'm not running any audio mods, and the issue appears most often in YouTube. Any help would be appreciated.

Thanks in advance.

Sent from my HTC One_M8 using XDA Premium 4 mobile app
NOTICE

IF I HELP YOU WITH ANYTHING (first, hit the thanks button) AND YOUR DEVICE ENDS UP BRICKED, I AM NOT RESPONSIBLE FOR IT!!!
Just want to make that clear

DEVICE: AT&T HTC One M7UL/Silver/32GB
RETIRED: HTC Inspire 4G/Desire HD
NEXT/DREAM DEVICE: Any Android device with the resolution of 1440 x 2560
ROM: I dunno lol
KERNEL: ElementalX
S-OFF

MY WORK: