Re: [Winmm/winealsa] Don't use asynchronous callbacks in dsound any more

2006-12-26 Thread Maarten Lankhorst
2006/12/25, Eric Pouech [EMAIL PROTECTED]: Maarten, nice work on Alsa (which is definitively needed !!) a couple of comments: - I know the winmm code (and drivers) is crippled by bad synchronisation tricks (like cleaning a field in a structure to signal a thread). This is bad (TM). So I'd

Re: [Winmm/winealsa] Don't use asynchronous callbacks in dsound any more

2006-12-26 Thread Eric Pouech
Maarten Lankhorst a écrit : 2006/12/25, Eric Pouech [EMAIL PROTECTED]: Maarten, nice work on Alsa (which is definitively needed !!) a couple of comments: - I know the winmm code (and drivers) is crippled by bad synchronisation tricks (like cleaning a field in a structure to signal a thread).

Re: [Winmm/winealsa] Don't use asynchronous callbacks in dsound any more

2006-12-25 Thread Eric Pouech
Maarten, nice work on Alsa (which is definitively needed !!) a couple of comments: - I know the winmm code (and drivers) is crippled by bad synchronisation tricks (like cleaning a field in a structure to signal a thread). This is bad (TM). So I'd suggest using here a real synchronisation

Re: [SPAM] [Winmm/winealsa] Don't use asynchronous callbacks in dsound any more

2006-12-24 Thread a_villacis
Instead of using asynchronous callbacks that uses signals, use a seperate thread that can be cancelled, this prevents deadlock issues. Basically we use snd_pcm_wait() that tells us when enough room is free to commit another buffer, then we commit the previous buffer and make the next buffer

Re: [Winmm/winealsa] Don't use asynchronous callbacks in dsound any more

2006-12-24 Thread Tomas Carnecky
Maarten Lankhorst wrote: Instead of using asynchronous callbacks that uses signals, use a seperate thread that can be cancelled, this prevents deadlock issues. Basically we use snd_pcm_wait() that tells us when enough room is free to commit another buffer, then we commit the previous buffer and