[wdmaudiodev] KSPROPERTY_AUDIO_POSITION implementation problem in Vista

  • From: swapnil kamble <swap.kamble@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Thu, 12 Mar 2009 13:23:53 +0530

Hi All,
            My driver works well without KSPROPERTY_AUDIO_POSITION support
but I do use KsStreamPointerAdvanceOffsetsAndUnlock() to advance pointer.
Now I am trying to port this on Vista( 32 bit ). Driver which was working on
XP, as it is did'nt worked on Vista, not even appeared in Audio
Capture/Render Sources Category . Then I changed name of Pin and could get
it listed under these category, but still I was not getting audio data. Then
I thought of implementing KSPROPERTY_AUDIO_POSITION for Vista. In which I
correctly specify PlayOffset(No. of Bytes that I played) and WriteOffset(No.
of Bytes that I received) but my Set handler is not being called, currently
I am ignoring this set handler, In this case too like XP I do need advance
Stream Pointer too by KsStreamPointerAdvanceOffsetsAndUnlock() call .

With this implementation, now I am getting audio data, but problem is that,
After every 15sec tentatively around 300ms of data is not being received by
driver. I checked in my buffer handling too, buffers are also even not
getting full due to which this problem might have occurred, but this is not
the case. My buffers are running smoothly before problem and after that too.
So problem is surely not in driver's buffer handling, I think that driver is
not receiving the data. Does anyone has any idea about this issue ? Is it
necessary of this property implementation on Vista ? Is there any other way
to get it working or am I missing some thing that I need to support ? My
timer value is 100000 and format with 44100 16 2. On XP my driver with this
timer value and format runs correctly. Please reply if you have any
suggestion about this.

Thanks and Regards,



-- 
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare Rama    Hare Rama   Rama   Rama    Hare Hare ||

Other related posts:

  • » [wdmaudiodev] KSPROPERTY_AUDIO_POSITION implementation problem in Vista - swapnil kamble