Can we skip this, and most of the following code in your use case? This will probably a huge performance boost. The question here is how significant is the Mixxx master output for headphones because it dos not depend on your external Mixxer.  
I think headphones are connected to the external Mixer as well, right?