ref_iface_IVDXStreamSource_TimeToPositionVBR - shekh/VirtualDub2 GitHub Wiki
VirtualDub Plugin SDK 1.2
IVDXStreamSource interface
Converts a timestamp to a sample number.
sint64 TimeToPositionVBR(sint64 us);
us | Timestamp in microseconds. |
This method is not thread-safe.
Errors may not be returned from this function (see SetError()).
The number of the nearest sample.
This function is only used if
IsVBR() returns true
.
Otherwise, the host automatically assumes a linear relationship between
position and time and uses round(us / 1000000.0 * rate / scale)
instead.
Copyright (C) 2007-2012 Avery Lee.