Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
AVIStreamWrite function (vfw.h) | Microsoft Docs[^]

I do not understand what the parameter lStart in this function means. It would be great if somebody could explain it.

What I have tried:

I tried to change the parameter to see what happens but I could not make sense of it.
Posted
Updated 7-Jun-19 5:53am

1 solution

It means, IMO, given x samples, which sample should be the "first" to be written.

It doesn't seem to be an offset; so the value is probably 1 - x; meaning how many samples to skip (-1) before writing samples from the buffer to the stream.

And since it's a "long", it's obvious that n can be a very big number so a "small" adjustment may be hard to notice.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900