Behavior of sound waves in different mediums