Seems like there ought to be a way to have only a single call to play the sound. The case above ought to be integrated into this function somehow, I think.