I9100 Australian edition unlocked fresh install of cm11 via cm installer
Music playback is silent
Phone calls nothing in the earpiece
Press loudspeaker and tadaa all sound comes through music and phone call Both through
This tells me the loudspeaker is OK the earpiece may be dead I am assuming that YouTube/media players aren't activating the output then , in the case of the music player piggyback off the loudspeaker being activated in call.
Headphones do work