One other thought that occurs to me is that if you're specifically sleeping to wait for a sound to finish playing, you can use sleep["play"] instead of specifying a number of frames; The all about sound tutorial includes some examples.
One other thought that occurs to me is that if you're specifically sleeping to wait for a sound to finish playing, you can use sleep["play"] instead of specifying a number of frames; The all about sound tutorial includes some examples.