[wdmaudiodev] Eluding glitch

  • From: Robert Bielik <robert@xxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 06 Feb 2012 15:34:40 +0100

Hi all,

I've developed a VAD solution that "pulls" audio data via a ring buffer in the 
device through a appl. specific transport (via DeviceIoControl) and it mostly works fine, 
but when having certain frame sizes I get glitches I have no clue from where they emanate.

With a frame size of 3528 bytes (441 frames á 8 bytes) everything works like a 
clock (this is incidentally the Interval sent to SetNotificationFreq).

When using a frame size on the pull side of 8192 bytes (1024 frames á 8 bytes), 
I can see that several CopyTo calls add up totalling 8192 bytes during each frame 
period. The audio plays fine aside from the fact that each 10 seconds, a very short 
glitch occurs (like a dropout), and I have not been able to pinpoint how or why. My 
ringbuffer neither underruns, nor overruns, nor can I see a difference in the CopyTo 
behavior.

I'm at a loss here. Does anyone have any idea what to check ?

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/

Other related posts: