> 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. there's no API AFAIK, but we could always cache the format in winmm's internal reprensentations. A+