View Full Version : AVIStreamRead fails mysteriously
Kyle_Katarn
7th March 2007, 21:38
Can anyone help ? I've got the same troubles :
http://www.tutorials-blog.com/win32/Problem-loading/
Bester
8th March 2007, 10:21
But I'm getting an error when I try to load the audio data. The problem is with
AVIStreamRead(audioStream, 0,AVISTREAMREAD_CONVENIENT, NULL, 0, &lSize, NULL);
This is returning 0x800440c7 and lSize is 0.
I don't have your file so I can only guess...
First: In AVIStreamRead you set "lpbuffer = NULL", so AVIStreamRead does not read any data, it returns information about the size of data that would be read, meaning this is not an error value.
Second: I would not rely on your file containing an audiostream with a wav-format, AVIStreamRead does not provide decompression services.
Kyle_Katarn
9th March 2007, 19:37
First : this is ok -> used like this, it should determine the needed space for the buffer
Second : I'm not trying to get a decompressed stream but the raw compressed data
thx anyway ...
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.