Share via


AVIStreamSampleToTime

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

STDAPI_(LONG) AVIStreamSampleToTime(
  PAVISTREAM pavi,  
  LONG lSample      
);

Parameters

pavi

Handle to 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.

Remarks

The argument pavi is a pointer to an IAVIStream interface.

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Vfw.h.
**  Library:** Use Vfw32.lib.

See Also

AVIFile Functions and Macros, AVIFile Functions