Medieval to modern. Everything I could find when I googled it was about WWI/WWII - and the articles said that next to no one used ear protection. So a lot of veterans had hearing issues. Although I didn’t find any articles about artillery men specifically
Here is an answer that touches upon hearing loss and noise in 19th century and earlier soldiers by u/El_Huachinango