I have been through the dreadful experience of getting a broken piece of the jack stuck in my macbook and having no sound whats so ever, and difficulties getting the jack out.
HOWEVER i have found a solution to disable the MacBooks headphone output and enable the internal speakers with the piece still stuck inside the headphone port.
you don't need any software its just on the audio settings please watch my video on youtube very easy steps to get your audio back
Hass
http://www.youtube.com/watch?v=Ej9K9voBFGw&feature=channel_video_title
HOWEVER i have found a solution to disable the MacBooks headphone output and enable the internal speakers with the piece still stuck inside the headphone port.
you don't need any software its just on the audio settings please watch my video on youtube very easy steps to get your audio back
Hass
http://www.youtube.com/watch?v=Ej9K9voBFGw&feature=channel_video_title