From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Sound in QT-Threads Date: Fri, 05 Jul 2002 17:30:04 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3D2287D0.1020600@emt.iis.fhg.de> <3D2293E1.1060903@emt.iis.fhg.de> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <3D2293E1.1060903@emt.iis.fhg.de> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Gabriel Gatzsche Cc: alsa-devel List-Id: alsa-devel@alsa-project.org Hi, At Wed, 03 Jul 2002 08:04:17 +0200, Gabriel Gatzsche wrote: > > > Hello! > > I have made a program with two qt-threads. One for reading from > > soundcard, one for writing. > > There are no problems if the threads work allone. But if both threads > > work in the same time, the program > > chrashes some times with following message: > > wavplay: pcm.c:5191: snd_pcm_mmap_commit: Assertion `offset == > > *pcm->appl_ptr % pcm->buffer_size' failed. > > Can somebody tell, what to do? it's difficult to say many things... does it happen if you run two processes (not threads), one for playback and another for capture at the same time? anyway it'd be better to show codes to check more details. ciao, Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Bringing you mounds of caffeinated joy. http://thinkgeek.com/sf