I love this code snippet: sounds[current].play; current = (current + 1) % sounds.length;
Sometimes you come across some really cool code that's clever written.
I like the following code that uses a modulo to loop a counter;
sounds[current].play;
current = (current + 1) % sounds.length;
Anyway, I found this from the Finch audio engine project (a Simple, low-latency OpenAL sound engine for Apple iOS)
