Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Seeking issues

1 view
Skip to first unread message

rep_movsd

unread,
Nov 8, 2009, 2:50:50 PM11/8/09
to
I have a filter that modulates an audio stream ( it uses the
SoundTouch library to modulate pitch ). Its derived from CBasefilter
and the pins from CBaseOutputPin and CBaseInputPin. As recommended in
the DX docs, i have a CPosPassthru member to which I redirect the
QueryInterface calls when IMediaSeeking or IMediaPosition is asked
for.

I do not set any timestamps in the output samples...

The filter works fine, but when I seek with SetPositions() , even
though the playback goes to the right position, the subsequent return
value from GetCurrentPosition() has not changed, it continues to
indicate the total time rather than the correct seeked time.

In other words, the return value of GetCurrentPosition() just keeps
monotonically and linearly increasing regardless of where the stream
is actually playing.

What's wrong with this?
Is there anything else I need to do?

Thanks in advance,
V

Geraint Davies

unread,
Nov 16, 2009, 4:50:30 AM11/16/09
to
On Sun, 8 Nov 2009 11:50:50 -0800 (PST), rep_movsd
<rep....@gmail.com> wrote:

>In other words, the return value of GetCurrentPosition() just keeps
>monotonically and linearly increasing regardless of where the stream
>is actually playing.
>

Do you pass on the NewSegment downstream?

0 new messages