JBL Flip 3 muffled sound fix

My speakers suddenly started to sound muffly when connected to my macbook pro (2015). This was fixed by changing the audio input in the macbook's settings to internal mic as opposed to the speaker's mic.

Idk why that worked but I hope it helps someone.