EnhEvents.LoadBias

[This is preliminary documentation and subject to change.]

The LoadBias property specifies the time offset to use when loading or merging a file.

Syntax

object.LoadBias [ = dLoadBias ]
 

Parts

object
Object expression that resolves to an EnhEvents object.
dLoadBias
Double that specifies the time offset, in seconds. This value can be either positive or negative.

Remarks

By default, when you load or merge an enhancement stream, the timing of events in that stream are relative to the start time of the show. However, you can set the event times in the loaded stream to be relative to another time.

To do this, set an offset time for stream in EnhEvents.LoadBias. This causes the events in the loaded stream to be relative to the start time of the show + the time offset you specify.

For example, if you set EnhEvents.LoadBias to 30 and then load a stream, the timing of events in the loaded stream will be offset by thirty seconds. If the loaded stream originally specified that Event A start at time 00:00.0, that event now starts at 00:30.0.

QuickInfo

  Windows NT: Unsupported.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in stream.idl.
  Import Library: Included as a resource in stream.dll.
  Unicode: Yes.

See Also

Merging Enhancement Streams, EnhEvents.Load

Examples

The following example merges two streams together, offsetting the timing of events in the second stream by thirty minutes.

Dim evs As IEnhEvents
Set evs = New EnhEvents
 
'load the first stream 
evs.Load("Stream1.str") 
 
'set the offset time to thirty minutes
evs.LoadBias = 1800
 
'merge Stream2 with Stream1
'the events in Stream2 will be offset by thirty minutes 
'relative to the start of Stream2
evs.Load("Stream2.str")