The SetBufferWindow method specifies the maximum latency between when a stream is received and when it begins to be displayed.
HRESULT SetBufferWindow( DWORD msBufferWindow );
Buffer window, in milliseconds.
This method always returns S_OK.
For high bit rate streams (typically, more than 1 megabit per second), a latency (or buffer window) of 1 second is typical; for lower bit rate streams, a latency of approximately 3 seconds is often used.
Setting the buffer window to -1 (0xFFFFFFFF) indicates that the buffer window is unknown. In this case, the writer selects the buffer window size.
For video streams, a larger buffer window gives higher quality.
|Minimum supported client||Windows 2000 Professional [desktop apps only],Windows Media Format 7 SDK, or later versions of the SDK|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||wmsdkidl.h (include Wmsdk.h)|
|Library||Wmvcore.lib; WMStubDRM.lib (if you use DRM)|