solution to poor audio quality on a mac
eMagic, a MIDI driver that I didn’t realise had been installed, was messing up itunes and youtube of audio and video. An hour of research revealed this to be the fix:
sudo rm -rf /Library/Audio/MIDI\ Drivers/*


