[wdmaudiodev] AVStream - Dynamically constraining to a specific DataRange based on HW.

  • From: wade <wdawson61@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Thu, 10 Jul 2003 12:25:20 -0700 (PDT)

I have a capture-only, pin-centric AVStreams capture driver. I need to force 
clients of the driver to accept a specific bit-depth and sample rate as 
dictated by the bitsream connect to my hardware. Does anyone know the best way 
to do this?
I am attempting to KsEdit the KSPIN_DESCRIPTOR_EX datarange on the fly to 
reflect ONLY the curent sample rate and bit depth, but don't know if this is 
the right procedure.  I have also tried supplying an IntersectHandler function 
through the IntersectHandler member of the pin's KSPIN_DESCRIPTOR_EX structure. 
 I was hoping I could just return a WAVEFORMATPCMEX structure which refelcts my 
current hardware reported sample rate and bit depth.  Unfortunately, my 
IntersectHandler function is never getting called.
Do I have to return STATUS_NO_MATCH from the pin's SetDataFormat() dispatch at 
least once to force a format negotiation or something? I'm curently returning 
STATUS_SUCESS form this dispatch.
Thanks for any help.

Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Other related posts: