So do the speakers and headphones outputs show up as separate output devices in the DPS Outputs menu? If so, this may be the source of the problem.
We know that some output drivers do not like to be dynamically switched. This means switching while they are active (sound is playing or paused). Have you tried stopping the audio then switching the outputs?