I cant understand this, according to what I read here. The speed of a wave depends on its wavelength and its depth, through the relation$$v=\sqrt{\frac{g\lambda}{2\pi}\tanh\left(2\pi \frac d\lambda\right)},$$where $\lambda$ is the wavelength, $d$ is the water depth, and $g$ is the acceleration due to gravity.
Yet the speed of sound is constant at $343\:\rm m/s$.
But sound is a product of an oscillation that provokes the molecules of the medium (atmosphere) to move up and down.
An oceanic wave is again the product of an oscillation that provokes the molecules of the medium (water/ocean) to move up and down.
Shouldn't both be constants just of a different value since water is a denser medium than air ? I can understand the reasoning of the one but when accepting it I can not understand why it does not apply to the other and vise versa :P I am really confused here...