In a script I play a sound ( .ogg file) using /usr/bin/play. The sound is played fine, but there is an annoying delay of a couple of seconds after the sound has been played before the program (play) terminates. Why is that, and can it be fixed?
Edit: The script is a git-commit hook. It just calls play -q filename.ogg. I have the same experience from the command line.
I'm on 10.04 if thats relevant.