Shazam's current input selections restrict it from recognizing songs when used with earbuds.
Shazam on mac can't recognise songs when wearing earbuds like on phone. As it can't listen to them, with the input options being limited to mac mic or earbud mic, which both won't be inputting anything in this case.