The American Civil War created several this kind of weapons, ranging from so-called “volley” guns that sprayed a variety of rifle bullets unexpectedly similar to a shotgun, to multishot, semi-automatic weapons just like the Agar machine gun, which was nicknamed the “espresso grinder” for the way it fed its ammunition. https://machguns.com/product/lot-1460-military-armament-corporation-m10a1-smg-silencer-class-iii-nfa/