Geometrical effects in resonant gas oscillations