[wdmaudiodev] Re: DirectKS not working properly on XP with an USB device

  • From: Robert Bielik <robert.bielik@xxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Mon, 28 Jun 2010 11:27:56 +0200

uwekirst skrev:
Hello,

I once had an issue with the direct KS example, which may also explain your bad experiance.
It's about how the audio buffer memory is allocated.
In the example they simply use a "new".
The problem with that is that the memory may be swapped out.
My experince is that you need to lock the buffers in memory.

VirtualAlloc + VirtualLock should do it then.

/R
******************

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: