diandaolly
2010-08-19 03:19:37 UTC
I used below graph to convert WMA to Wave in DirectShow:
------
WM ASF Reader -> WMA Decoder -> WavDest -> File Writer
------
The conversion is OK. I did get my wav file.
To However, I'd like to use IMediaSeeking::GetCurrentPosition()/
GetDuration() to indicate the conversion progress.
I successfully obtained the IMediaSeeking interface from the output
pin of WavDest.
Before running the graph, I can also get the duration time.
However, no matter the graph is running or not,
when I call IMediaSeeking::GetCurrentPosition(),
I always get "zero".
Why? Please help. TIA.
------
WM ASF Reader -> WMA Decoder -> WavDest -> File Writer
------
The conversion is OK. I did get my wav file.
To However, I'd like to use IMediaSeeking::GetCurrentPosition()/
GetDuration() to indicate the conversion progress.
I successfully obtained the IMediaSeeking interface from the output
pin of WavDest.
Before running the graph, I can also get the duration time.
However, no matter the graph is running or not,
when I call IMediaSeeking::GetCurrentPosition(),
I always get "zero".
Why? Please help. TIA.