Which physical quantity remain unchanged when light and sound passes through medium?

When light or sound pass through various media, their speed and wavelength change, but their frequencies remain constant.