I wrote:
>> Do I have to setup a signal handler for SIGTERM to close the audio
>> device properly?
>
> This shouldn't be necessary either.

Ok a replied too quickly - it is (only) when you get SIGTERM that you have
the problem?

Well, in that case, you might need to put in a handler and issue the
SNDCTL_DSP_POST/RESET in that ... otherwise the app will (probably) sleep on
the output queue until it is empty.

You should be able to see that with 'ps' if it's taking 2 seconds.

ciao,
Iain

Reply via email to