In case of waves that travel in a medium (for example, sound waves), the overall effect depends on the motion of the source, medium, and the observer. In the case of waves without a medium (for example, light), only the velocity difference between the observer and the source is taken into consideration.