Well, you see, the problem with that is that it doesn't solve the problem. That's just another way of storing it. And the thing that that would store is not the sound data, I think, but a reference to the file, or possibly the file data; either way, it doesn't help me to play sounds more than once. I mean, with the code shown below, it plays everything, every time, but it uses up more and more memory and causes the program to run slower and slower until eventually it stops.
I'm pretty sure the problem is the sound, because when I changed the buffer size (from 1024 to 128) the peformance improved slightly.