Skip to contentSkip to conversation

ALSA and Wine DirectSound question: Fwd from wine-patches list

DISCUSSION Chris Rankin 3 participants 3 messages Aug 10, 2005 – Aug 11, 2005

lore
Share & tools
lore
#0 lore raw

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

Cheers,
Chris

___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

-------------------------------------------------------
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

#1 lore raw
Quoted 4 lines · Chris Rankin

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.

Lee

-------------------------------------------------------
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

#2 lore raw

At Wed, 10 Aug 2005 15:08:45 -0400,

Quoted 5 lines · Lee Revell
Quoted 3 lines · Chris Rankin

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?

Quoted 7 lines
Quoted 1 line

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