On Sun, 15 Aug 2004, Eric Pouech wrote: [...]
coming back from vacation, and starting browsing thru the pile of e-mail (I'm not sure of the final output of this discussion). How about, letting the drivers decide which format they support (in ???_GETPOS message handling) and have the fallback code in winmm.c ? This would help the factorisation of the code.
In the end I just factored the code between the waveout and wavein code in each driver. So the TIME_SMPTE is still duplicated in each driver.
The problem with sharing this code in winmm.c is that we need to know what's the device format and I'm not sure how to do that from winmm.c.