Which device is controlled by gesture controls on CMF Headphone Pro when connected to two phones?

The gesture controls will affect the device currently outputting audio through the headphones. If there is no audio playing, the controls will operate the last connected device or the device that most recently played audio through the headphones.