There is no such setting, this is an issue in the games code.

There is an api that must be implemented for a game that uses Xaudio to properly detect audio device connection/disconnection, and FFXIV does not implement it.