detectGap
detectGap(
audioBuffer,loopData,opts?):object
Defined in: packages/pleco-xa/src/playback/ops.js:355
Detect a gap (silence across all channels) after the loop end.
Parameters
Section titled “Parameters”audioBuffer
Section titled “audioBuffer”any
loopData
Section titled “loopData”any
minGapSize?
Section titled “minGapSize?”number
silenceThreshold?
Section titled “silenceThreshold?”number
Returns
Section titled “Returns”object
sample-indexed gap, or null when no qualifying gap exists (an honest “nothing found”, not an error).
end:
number
size:
number
start:
number