A muffler with adaptive acoustic properties