Windows Media Format SDK banner art
PreviousNext

IWMStreamConfig::SetBufferWindow

The SetBufferWindow method specifies the maximum latency between when a stream is received and when it begins to be displayed.

Syntax

HRESULT SetBufferWindow(
  DWORD  msBufferWindow
);

Parameters

  msBufferWindow

[in]  Specifies the buffer window, in milliseconds.

Return Values

This method always returns S_OK.

Remarks

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 uses whatever buffer window it deems appropriate.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.