From: Takashi Iwai Subject: Re: ALSA and Wine DirectSound question: Fwd from wine-patches list Date: Thu, 11 Aug 2005 15:12:51 +0200 Message-ID: References: <20050810121434.96950.qmail@web52911.mail.yahoo.com> <1123700926.24369.18.camel@mindpipe> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1123700926.24369.18.camel@mindpipe> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Lee Revell Cc: Chris Rankin , alsa-devel@lists.sourceforge.net, a.villacis@palosanto.com List-Id: alsa-devel@alsa-project.org At Wed, 10 Aug 2005 15:08:45 -0400, Lee Revell wrote: > > On Wed, 2005-08-10 at 13:14 +0100, Chris Rankin wrote: > > I think the Wine developers are seeking enlightenment from an ALSA Guru. (The "World of Warcraft" > > people seem keen to get this patch working, too ;-).) Can anyone help, please? > > > > http://www.winehq.org/hypermail/wine-patches/2005/08/0173.html > > This sounds a lot like my theory about what is causing the infamous > crackling problem that has been reported with JACK - the ALSA middle > layer is consistently returning an incorrect hardware pointer which > causes a few samples from the other buffer (assuming a double buffering > scheme) to be overwritten. If the cracking problem doesn't happen with _snd_pcm_mmap_hw_ptr() and happens only with this patch, the problem might be the inaccurate DMA position triggered snd_pcm_hw_sync(). Maybe it'd be helpful to put debug outputs comapring both the values of _snd_pcm_mmap_hw_ptr() and the emulated hwptr. (You should check the values of _snd_pcm_mmap_hw_ptr() before and after snd_pcm_hwsync(), too). Or, if the problem is with dmix, it's another story... Takashi ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf