Double-beam fourier spectroscopy with two inputs and two outputs