Volley gun
The Ribauldequin was a medieval version of the volley gun. It had its barrels set up in parallel. This early version was first employed during the Hundred Years' War by the army of Edward III of England, in 1339. Later on, the late Swiss army employed it.
Machine gun
The first known ancestors of multi-shot weapons were medieval organ guns, while the first to have the ability to fire multiple shots from a single barrel without a full manual reload were revolvers made in Europe in the late 1500s. One is a shoulder-gun-length weapon made in Nuremberg, Germany, circa 1580. Another is a revolving arquebus, produced by Hans Stopler of Nuremberg in 1597.