Re: [linux-audio-dev] OSS question

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] OSS question
From: Iain Sandoe (iain_AT_sandoe.co.uk)
Date: Mon Jul 30 2001 - 16:53:00 EEST


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


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Jul 30 2001 - 16:52:52 EEST