Chinmay,Have you tried elevating the priority of your thread and/or process to THREAD_PRIORITY_TIME_CRITICAL and REALTIME_PRIORITY_CLASS respectively?
Jeff----- Original Message ----- From: "Chinmay Mahata" <chinmay.mahata@xxxxxxxxx>
To: "wdmaudiodev" <wdmaudiodev@xxxxxxxxxxxxx> Sent: Wednesday, November 14, 2007 2:45 AM Subject: [wdmaudiodev] Problem With Wave System
Hi, We have developed WDM miniport driver for a 4 port PCI card. We also have an application to play and record wave files using the standard multi-media wave APIs (waveInXxx, waveOutXxx). In the application we are using a worker thread created using _beginthreadex() call. If we run our application (using GUI) without switching to other (independent) windows (not minimizing/maximizing it), our play/record gets succeeded. But if we run our application (using GUI) and open a separate cmd window and maximize/minimize it, then we are getting some jitter in playing the wave file. Also the application is unable to record the whole file. Here in the driver, we observed -- from the wave system the driver is getting very frequent PAUSE and almost immediate RUN command even if from the application we are not calling any multimedia API to cause wave system to do that. This is creating a great problem for us. Could anyone please give me some hint about -- why we are getting so many PAUSE/RUN request from the wave system even if the application is not asking for it; how we can minimize the number of PAUSE/RUN request from the wave system. Any help is appreciated. Best regards, --Chinmay ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/
****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/