[wdmaudiodev] Re: Stable thread scheduling Vista

  • From: Jerry Evans <jerry@xxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Fri, 25 Mar 2011 18:48:55 +0000

Hi Rob,

This BSD code does WaveRT, no idea if it handles polled mode.  http://code.google.com/p/cmediadrivers/

ATB

Jerry

On 25/03/2011 18:04, Robert Bielik wrote:
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
boundaries.

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

TIA
/Rob

******************

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/

Other related posts: