Swift 2: AVAudioPlayers to play multiple sounds at once
问题 So hey I've been searching around, trying to find a way to solve this, but there's basically no solutions to this yet. I desperately need a way to instantiate and play a sound whenever I want, without it cutting out any other sounds. I know that AVAudioPlayer can only play one sound at a time, so I'm trying to figure out how to make a dynamic array of AVAudioPlayers that I can add to any time I need to play a sound. My current code, that I got from a different answer on this site, is this: