Interference
How can a headset cancel engine noise?
By generating the opposite sound. A microphone captures the engine's rumble. Electronics calculate its exact inverse, and a speaker emits it towards your ear. Trough against crest, the two waves cancel each other out.