Table of Contents

Struct SampleLoop

Namespace
NAudio.Sampler
Assembly
NAudio.Sampler.dll

Loop points embedded in a sample file (e.g. a WAV smpl chunk), in sample frames. Start is inclusive and End is exclusive (one past the last looped frame), matching the engine's NAudio.Sampler.SampleData convention — note the WAV smpl chunk itself stores an inclusive end, converted on read.

public readonly struct SampleLoop
Inherited Members

Constructors

SampleLoop(int, int)

Creates loop points (start inclusive, end exclusive).

public SampleLoop(int start, int end)

Parameters

start int
end int

Properties

End

Loop end frame (exclusive, one past the last looped frame).

public int End { get; }

Property Value

int

Start

Loop start frame (inclusive).

public int Start { get; }

Property Value

int