ref_iface_IVDXStreamSource_TimeToPositionVBR - shekh/VirtualDub2 GitHub Wiki

VirtualDub Plugin SDK 1.2

IVDXStreamSource interface

IVDXStreamSource:: TimeToPositionVBR

Converts a timestamp to a sample number.

sint64 TimeToPositionVBR(sint64 us);

Parameters

us Timestamp in microseconds.

Thread safety

This method is not thread-safe.

Errors

Errors may not be returned from this function (see SetError()).

Return value

The number of the nearest sample.

Remarks

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.

⚠️ **GitHub.com Fallback** ⚠️