On the mechanics of oscillating flames