MacOS – Is it possible to disable audio through speakers, only play through headphones via headphone jack

audiomacmacossound-volume

Is there an option / setting that allows you to only output audio via the headphone port on your macbook / pro / air ?

So that if i had my headphones on and then pulled them out of the laptop the audio wouldnt come out of the speakers until i turned off this option.

Background : Im running a MBP with 10.9.5

Best Answer

When you switch audio outputs, the volume level reverts to whatever level it was at when you last used that output. That means that muting the internal speaker before plugging in headphones should be enough to stop audio from playing through the speaker if you disconnect your headphones.

If you want to keep the speaker disabled even if you hit any volume controls, you can use Soundflower. It's an extension designed to let your Mac record its own audio output, which it does by creating virtual input and output options that feed directly into each other. That means that you can hold down Option, click on the volume icon in the menu bar, and select one of the Soundflower options as your audio output before plugging in your headphones and selecting them as the output device. If your headphones get disconnected, your audio output will default to Soundflower, which doesn't send anything through the speaker. To re-enable the speaker, just Option-click on the volume icon in the menu bar and choose the built-in speaker for output.