I think you're referring to "Jake Braking", which is very noisy and is banned in many towns (in California).
https://en.wikipedia.org/wiki/Compression_release_engine_bra...
https://en.wikipedia.org/wiki/Compression_release_engine_bra...
Engine braking on a gasoline engine is actually quieter than normal operation.
http://www.jacobsvehiclesystems.com/about-us/environmental-h...