Engines produce sonic and thermal waves. Scavenging is done by using the size and length of pipe that is the best compromise. Including the type of muffling device. Ssometimes giving power and efficiency, but not always.