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