AVIStreamTimeToSample

The AVIStreamTimeToSample function converts from milliseconds to samples.

STDAPI_(LONG) AVIStreamTimeToSample(
  PAVISTREAM pavi,  
  LONG lTime        
);

Parameters

pavi

Handle to an open stream.

lTime

Time, expressed in milliseconds.

Return Values

Returns the converted time if successful or - 1 otherwise.

Remarks

Samples typically correspond to audio samples or video frames. Other stream types might support different formats than these.

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