The AVIStreamRead function reads audio, video or other data from a stream according to the stream type.
STDAPI AVIStreamRead(
PAVISTREAM pavi,
LONG lStart,
LONG lSamples,
LPVOID lpBuffer,
LONG cbBuffer,
LONG * plBytes,
LONG * plSamples
);
Returns zero if successful or an error otherwise. Possible error values include the following:
Value | Description |
---|---|
AVIERR_BUFFERTOOSMALL | The buffer size cbBuffer was smaller than a single sample of data. |
AVIERR_MEMORY | There was not enough memory to complete the read operation. |
AVIERR_FILEREAD | A disk error occurred while reading the file. |
If lpBuffer is NULL, this function does not read any data; it returns information about the size of data that would be read.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
Import Library: Use vfw32.lib.
AVIFile Functions and Macros Overview, AVIFile Functions