From: =?iso8859-15?Q?Nicolas_H=FCppelsh=E4user?= Subject: Re: ALSA and select, poll, ... (interrupted system calls) Date: Fri, 18 Jun 2004 08:54:39 +0200 (CEST) Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Clemens Ladisch Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Clemens Ladisch wrote: > What does the ALSA code in your program do? There won't be any > signals unless you have enabled asynchronous notifications using > SIGIO. You're right - the interruption occurs only if asynchronous notifications is enabled; I enable it via the snd_async_add_pcm_handler function. The code itself does nothing very special: capturing and playing sound data via mmap. By now I workaround with a mixture of nanosleep/"time polling" (tracking elapsed system time in a loop). Is there a better way? regards Nicolas ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND