stretchAudioNoIterpol

Streches a buffer to the given amount using no interpolation. Amount decided by dest.length. Can be used to pitch the sample.

@nogc nothrow pure @safe
void
stretchAudioNoIterpol
(
const(int)[] src
,
int[] dest
,
ref WavemodWorkpad wp
,
uint modifier = 0x1_00_00_00
,
uint clamping = 0xFF
)

Parameters

src const(int)[]

source of the stream.

dest int[]

destination stream, it's length is also equals to how much samples are needed.

wp WavemodWorkpad

wave modulation workpad, storing information such as source position.

modifier uint

jump amount, might be moved to a template parameter later on.

clamping uint

Used for situations where not the whole waveform is decoded. Limits buffer size in a way, that it allows for double buffered decoding by allowing it to turn around at the end of one buffer.

Meta