[wdmaudiodev] Stable thread scheduling Vista

  • From: Robert Bielik <robert.bielik@xxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Fri, 25 Mar 2011 19:04:26 +0100

Dear all,

With a weird sequence of events, my soundcard went from WaveRT with 
notifications to WaveRT no-notifications (with a Vista update, great job...). 
Being as it is,
I need now to implement the poll-mode of WaveRT, however I have a hard time 
getting the poll thread to be stable (I assume), even though
the entire buffer is 4096 bytes (= 1024 frames or 23.2 ms).

Thread is running in MMCSS PA_AVRT_PRIORITY_CRITICAL level and I just output a 
440Hz sine wave, but get a lot of pops/clicks, tried with
two sync methods, WaitForSingleObject with 5 ms timeout and timeSetEvent 
notifying an event at 5 ms periodicity.

The position to write from is calculated as positionRegister + hwLatency + (10 
ms worth of write ahead), and care is taken at buffer

Any ideas? Perhaps some reference implementation somewhere ? :) (obviously the 
audiosrv manages to do it...)



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


Other related posts: