From: Takashi Iwai Subject: Re: under-runs and prepare() Date: Tue, 10 Sep 2002 18:54:25 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20020910160514.63169.qmail@web11507.mail.yahoo.com> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from Cantor.suse.de (ns.suse.de [213.95.15.193]) by alsa.alsa-project.org (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id SAA29603 for ; Tue, 10 Sep 2002 18:54:30 +0200 In-Reply-To: <20020910160514.63169.qmail@web11507.mail.yahoo.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Guilhem Tardy Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 10 Sep 2002 09:05:14 -0700 (PDT), Guilhem Tardy wrote: > > Hi all, > > I understand that prepare() is used to restart playout or capture from a known > state in the driver, and wonder if it is OK to have it block until buffers > being currently played out have completed? > > This came up because our app is experiencing -EPIPE quite often, most likely > because real-time audio is being played out immediately without the least > buffering by the app. Any advice is most welcome regarding this issue. the problem is that your app got xrun. it has nothing to do with prepare(). prepare() is called because the app became out of control. perhaps raising the priority of the audio thread will improve this response, but it of course depends on the basic design of the program itself. ciao, Takashi ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390