ref_iface_IVDXStreamSource_PositionToTimeVBR - shekh/VirtualDub2 GitHub Wiki

VirtualDub Plugin SDK 1.2

IVDXStreamSource interface

IVDXStreamSource:: PositionToTimeVBR

Converts a sample number to a timestamp.

sint64 PositionToTimeVBR(sint64 sample);

Parameters

sample Sample number.

Thread safety

This method is not thread-safe.

Errors

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

Return value

The timestamp of the start of the sample, in microseconds.

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(sample / rate * scale * 1000000.0) instead.


Copyright (C) 2007-2012 Avery Lee.

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