Pc sound not switching to headset

Cubase will only play through the PC speakers even when headphone jack is inserted. The socket does work correctly on other programs. With Cubase nothing comes through the headset. It is as though Cubase is somehow by passing the routine that switches pc sound off and headphone socket on. I get the same result using the headphone socket, USB headphones and bluetooth headset.

Any ideas?