When I was in the navy we used sound underwater a lot, so much in fact that we had equations capable of mapping out a sound rays path.
Now, when it came down to mapping out the paths of sound the equations came from snells law. Snells law applies to ray paths in general. So both sound and light...