In the case of a sound wave in air hitting a solid wall, most of the sound is reflected. If the wall is relatively flat, perpendicular to the source of the sound, and far enough away (but not too far), then you can hear the reflected waveform or echo.