Resonant gas oscillations in a linear area variation closed cavity are investigated, for two duct cross sections: rectangular and circular. The resonance frequencies were similar for both the ducts. Increased drive amplitude produced higher distortions in the waveform. It was found that both resonators exhibited commensurate behavior. This is opposed to noncommensurate behavior observed in nonuniform circular cross section resonators. The rectangular section duct had higher energy than circular section duct, in second harmonic for the same drive amplitude. The results reveal that in order to achieve shockless high amplitude pressure oscillations in a duct, both nonuniform area variation and circular cross section are required.