Loud sounds from the engine compartment (probably)

I drive a V40 1.8 122hp year 2001. For 2 days there is a strange loud noise coming out of my engine room that sounds like a mixture of rubbing and clapping, but you can only hear it very strongly in the interior and there it sounds partly as if the exhaust is leaking, but this is dense and firmly mounted. Usually the noise occurs when I walk away from the gas while driving (sounds Sonor and Dump as if a sports air filter or exhaust were installed) and if I give gas only briefly at 2000 revolutions (but then strong and clapping/beating). In the idle and in the stand there is nothing to be heard, except the noise that the camshaft adjustment is attributed (krr 1sec krrr 1sec krrr). At the friendly side one could not really help me any further, since this noise has never come under him. He typed either on NW adjustment or drive shafts. I am grateful for any help.