Dependence of hadron spectra on decoupling temperature and resonance contributions