Skip to content

reverseSection

reverseSection(audioBuffer, startSample, endSample, opts?): any

Defined in: packages/pleco-xa/src/playback/ops.js:508

Reverse a sample range of a buffer WITHOUT mutating the input (copy-then-reverse; contrast with the in-place core reverseBufferSection).

any

number

inclusive start of the section

number

exclusive end of the section

any

new buffer (same length as input)