跳转到内容

buildRateEnvelope

此内容尚不支持你的语言。

buildRateEnvelope(options): readonly CurvePoint[]

Defined in: packages/sdk/src/rate-envelope.ts:32

Compile a rate envelope (segmented playback speed) into equivalent curve time-mapping points. The envelope integrates rate over timeline time: each segment advances the source time by rate * durationUs. Item time is strictly increasing. Source time may advance, hold, or move backward, allowing deterministic forward, freeze-frame, and reverse spans.

Returns at least two points; a single segment produces the two endpoints.

RateEnvelopeOptions

readonly CurvePoint[]