AVIStreamSampleToTime  22C2LWE 

The AVIStreamSampleToTime function converts a stream position from samples to milliseconds.

STDAPI_(LONG) AVIStreamSampleToTime(

    PAVISTREAM pavi,

 

    LONG lSample

 

   );

 

 

Parameters

pavi

Handle of an open stream.

lSample

Position information. A sample can correspond to blocks of audio, a video frame, or other format, depending on the stream type.

 

Return Values

Returns the converted time if successful or - 1 otherwise.