Got sound( ) to work.
Done fighting with sound / msleep. Note that the length arguments for sound cause it to last longer if it's lower (no idea why).