There have been a few experiments with active noise-canceling mufflers, especially on industrial generators. These systems incorporate a set of microphones and a speaker.
The speaker is positioned in a pipe, which wraps around the exhaust pipe so that the sound from the exhaust comes out in the same direction as the sound from the speaker. A computer monitors a microphone positioned before the speaker and one positioned after the speaker. By knowing some things about the length and shape of the pipes, the computer can generate a signal to drive the speaker. This can cancel out much of the sound coming from the generator. The downstream microphone lets the computer know how well it is doing so it can make adjustments if needed.
For more information on mufflers, sound and related topics, check out the links on the next page.