Constant audio stuttering when playing videos in Firefox

I'm not too sure if this is just related to Firefox itself or Hackintosh but I've been getting constant audio stutters when playing videos such as YouTube in Firefox. I've tried changing my video codec to H264 as that's what safari uses which has no audio stutter issue. I've tried disabling serial ports in the BIOS, change USB ports but no avail. I know I can just use Safari but I cannot put up with how slow it is compared to Firefox.

Specs:

Ryzen 5 2600

RX 580

Asus B450M-A

MacOS Big Sur, MacPro7,1

submitted by /u/vxsqi
[link] [comments]