Mutually exclusive headphone and speaker
You could attach the +Input pin to Detect instead of R, and connect +Input to ground with a large resistor so that the input voltage is zero when the switch is opened, but equal to Output_R when closed.