the powder gases (pg) exit the muzzle of the barrel at much more than the speed of sound.
the 22 mag cartridge has more powder, hence more pg pressure when the bullet leaves the barrel, hence more noise.
the shorter the barrel, the more pg pressure in that barrel at the time the bullet leaves that barrel. more pg pressure, more noise.
if the barrel is long enough, the pg pressure will be low enough, hence the pg speed low enough to be subsonic (if the bullet doesn't get stuck in the barrel).
silencers are not made for revolvers because they cannot silence the supersonic gases exiting the barrel/cylinder gap.
fyi,
murf