Export (0) Print
Expand All
Expand Minimize

AVIStreamSampleToTime function

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

Syntax


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 value

Returns the converted time if successful or –1 otherwise.

Remarks

The argument pavi is a pointer to an IAVIStream interface.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

Library

Vfw32.lib

DLL

Avifil32.dll

See also

AVIFile Functions and Macros
AVIFile Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft