[wdmaudiodev] Re: Audio Fuzzing?

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 3 Jan 2018 18:06:47 +0000

I wonder if perhaps you’re using exclusive mode for render, but shared mode for 
capture. Shared mode on either side would explain this.

________________________________
From: Matthew van Eerde (^_^)
Sent: Wednesday, January 3, 2018 9:46:16 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: RE: [wdmaudiodev] Audio Fuzzing?


How sure are you that you’re using exclusive mode? This is normal for shared 
mode (dithering when converting from int-to-float-to-int) but I can’t explain 
it for shared mode. What software are you using to stream?



We do sometimes fuzz audio for DRM purposes, but only loopback capture (never 
playback), and even then only if the app explicitly asks for it via a 
PEACTION_EXTRACT policy (which your app presumably didn’t.)



________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on 
behalf of Tim Roberts <timr@xxxxxxxxx>
Sent: Wednesday, January 3, 2018 9:35:53 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Audio Fuzzing?

We're seeing an effect I can't explain.

I wrote a simple virtual audio driver based on MSVAD.  The fake speaker
feeds into a FIFO to be read by an app, and the fake microphone reads
from another FIFO fed from an app.

In one of our initial tests, we open the fake speaker at 48000-S-16 in
exclusive mode, feed in a repeating ramp from -32768 to 32767, and read
it back from the FIFO.  What we're finding is that the FIFO results are
not identical to the input ramp.  There are seemingly random variations
in the low couple of bits, with a bit of clipping at the top end.  The
fuzz in the two channels is not identical.

This surprises me.  I would have expected simple passthrough.  Even if
the audio were being passed through an integer-to-float-to-integer
conversion, the two channels should still have remained identical.  Then
I had a horrible thought.  This driver does not have the "trusted audio
source" signature.  Is it possible that the audio engine is
intentionally fuzzing the low order bits of my speaker output for DRM
purposes, to discourage digitally-accurate capture of generated audio?

--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

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

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:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7C1672650da80f4143046508d552d08342%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636505977894714886&sdata=KLwLQVCO2NuRqCwpSxE1NN8nSwYNUzw3FkWcUYJysXw%3D&reserved=0

Other related posts: