dsound global variable use reduction

Eric Pouech pouech-eric at wanadoo.fr
Sat Jan 10 01:20:31 CST 2004


Robert Reif a écrit :
> Reduce the use of the dsound global variable by
> passing address to functions.  This is in preparation
> of supporting multiple DirectSound devices.  We can't
> remove all uses because an mmtimer callback can be
> called even after the timer is killed.  Windows has an
> mmtimer flag that prevents this but wine doesn't
> implement it.

Could you be more specific on this one ?
timeKillEvent is not 100% thread safe (I'll send a patch later on), but 
timeKillEvent in Wine is always synchronous (ie the killer is killed 
when timeKillEvent returns).




More information about the wine-devel mailing list