The effect of demagnetization fields on recording spectra