Longitudinal waves are sound waves where the displacement of the medium occurs in the same direction as the direction of the wave. These types of waves are also known as compressional or pressure waves and can be generated in solids, liquids and gases.