I was making this little practice project for myself, a drum machine, where you press a button - you get a certain sound. Everything worked fine until I opened it in Safari. It plays the sound once, then it kind of does it after, but the audio sounds glitched and so quiet that I initially thought there was no sound at all. I have attached the link to codepen. Granted, there are no sounds in codepen version as I don’t really know where to easily upload them. If someone knows a good way to do that, I will gladly add it as well.
Please if anyone could help me out here, suffering for days now
Here’s the link to the code: https://codepen.io/onelegtony/pen/qBrwPrP
Thank you in advance!