how to know when IWMReaderCallback::OnSample() is called no more (end of data)
- From: jose.a.perez.sanchez@xxxxxxxxx
- Date: Tue, 12 Feb 2008 06:44:49 -0800 (PST)
Hi all,
I am developing an audio player with WMF SDK 11.
I am using an asynchronous WMReader, and IWMReaderAdvanced's user
provided clock.
When playing some files, I cannot detect the end of the audio data at
IWMReaderCallback::OnSample() because cnsSampleTime +
cnsSampleDuration doesn't always reach the total length of the audio
(read from g_wszWMDuration header attribute).
I get WMT_EOF at IWMReaderCallback::OnStatus() but OnSample() will
still be called a few more times afterwards, so OnStatus() events are
useless for this task.
Which would be the correct way to detect that the total length of the
audio has been decompressed (ie. OnSample() is not going to be called
anymore).
Cheers,
Jose
.
- Follow-Ups:
- Re: how to know when IWMReaderCallback::OnSample() is called no more (end of data)
- From: Alessandro Angeli
- Re: how to know when IWMReaderCallback::OnSample() is called no more (end of data)
- Prev by Date: Re: Error signature when calling GetScriptCount of IWMHeaderInfo3
- Next by Date: RE: "Attempted to read or write protected memory" with GetScriptCo
- Previous by thread: Re: Error signature when calling GetScriptCount of IWMHeaderInfo3
- Next by thread: Re: how to know when IWMReaderCallback::OnSample() is called no more (end of data)
- Index(es):
Relevant Pages
|
Loading