Postpone when playing sound

In a manuscript I play a sound ( .ogg documents) making use of /usr/bin/play. The sound is played penalty, yet there is an aggravating hold-up of a number of secs after the sound has actually been played prior to the program (play) ends. Why is that, and also can it be dealt with?

The manuscript is a git-commit hook. It simply calls play -q filename.ogg. I have the very same experience from the command line.

I'm on 10.04 if that's pertinent.

0
2019-05-06 21:49:25
Source Share
Answers: 2

I would certainly connect that to the moment it considers the application to shut down. It actually depends just how you created the manuscript.

This could be even more of scripting concern than a ubuntu one.

0
2019-05-08 19:41:24
Source

There's no demand to await the sound to be finished, right? So you can simply

play file.ogg </dev/null &>/dev/null &

(or look here for extra extreme detaching). Additionally attempt ogg123 or mplayer as opposed to play, or attempt a various audio result.

0
2019-05-08 19:25:12
Source