Consistent coupled mode theory of sound propagation for a class of nonseparable problems