API ReferenceSandbox.MovieMaker.Compiled

CompiledSampleBlock<T>class

This block contains an array of values sampled at uniform intervals.

object→CompiledSampleBlock<T>
Namespace
Sandbox.MovieMaker.Compiled
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.MovieMaker.Compiled.CompiledSampleBlock<T>

Constructors1

Showing 1 constructors

public CompiledSampleBlock<T>(Sandbox.MovieMaker.MovieTimeRange TimeRange, Sandbox.MovieMaker.MovieTime Offset, int SampleRate, System.Collections.Immutable.ImmutableArray`1<T> Samples)PUBLICCONSTRUCTOR

ParameterTypeDescription
TimeRangeMovieTimeRange—
OffsetMovieTime—
SampleRateint—
SamplesImmutableArray<T>—

Methods6

Showing 6 methods

public Sandbox.MovieMaker.Compiled.CompiledSampleBlock`1<T> <Clone>$()PUBLIC

Returns:CompiledSampleBlock<T>—

public void Deconstruct(Sandbox.MovieMaker.MovieTimeRange TimeRange, Sandbox.MovieMaker.MovieTime Offset, int SampleRate, System.Collections.Immutable.ImmutableArray`1<T> Samples)PUBLIC

ParameterTypeDescription
TimeRangeMovieTimeRange—
OffsetMovieTime—
SampleRateint—
SamplesImmutableArray<T>—
Returns:void—

public virtual sealed T GetValue(Sandbox.MovieMaker.MovieTime time)PUBLICVIRTUAL

ParameterTypeDescription
timeMovieTime—
Returns:T—

public Sandbox.MovieMaker.Compiled.ICompiledPropertyBlock`1<T> Reduce()PUBLIC

Returns a property block with only sample data within `Sandbox.MovieMaker.Compiled.CompiledSampleBlock.TimeRange`. Returns the current instance if it represents an irreducible block. If only one sample is needed, will return a `Sandbox.MovieMaker.Compiled.CompiledConstantBlock`.

Properties4

Showing 4 properties

public virtual sealed Sandbox.MovieMaker.MovieTime Sandbox.MovieMaker.Compiled.CompiledSampleBlock<T>.Offset { get; set; }PUBLICVIRTUALGETSET

Time offset of the first sample.

Returns:MovieTime—

public virtual sealed int Sandbox.MovieMaker.Compiled.CompiledSampleBlock<T>.SampleRate { get; set; }PUBLICVIRTUALGETSET

How many samples per second.

Returns:int—

public System.Collections.Immutable.ImmutableArray`1<T> Sandbox.MovieMaker.Compiled.CompiledSampleBlock<T>.Samples { get; set; }PUBLICGETSET

Returns:ImmutableArray<T>—

public virtual sealed Sandbox.MovieMaker.MovieTimeRange Sandbox.MovieMaker.Compiled.CompiledSampleBlock<T>.TimeRange { get; set; }PUBLICVIRTUALGETSET

Start and end time of this block.

Returns:MovieTimeRange—

On this page