They used real cannons, and the recording & mastering engineers did their best to reproduce them faithfully. It is one of very few albums I have with a prominent warning sticker on the album which is there for a good reason, not for bragging rights - it basically says that unless you are quite conservative with the volume knob, your speakers will die once the cannons do their thing.