Click to See Complete Forum and Search --> : Directshow AudioRenderer - frequency drift


Mike@Nestor
May 6th, 2004, 10:50 AM
Hi !

I hope I post on the correct forum. If not please tell me :)

I made my own directsound audio renderer filter (directshow) because the microsoft directsound filter cannot play backward at different rates.

My filter works fine except for one thing.
When I play (forward or backward) a multimedia file (video + audio) at a rate of 1.0, the result is nice, the streams keep synchronization.
But if I specify a frequency other than 1.0 (I use only 0.25, 0.5, 0.75, ... rate), streams do not keep synchronization. At the beginning is nice but progressively I see a drift between audio and video.

I do not know if the problem come from my implmentation or the directsound SetFrequency( ) method but I notice another thing : with the microsoft directsound renderer when I specify a rate other than 1.0, streams always keep synchronization.
So the problem seems to come from my implementation.

I am not a DirectX specialist, so if someone has some advices it would be great
thanks

Mike