closeGapLeft
closeGapLeft(
audioBuffer,loopData,opts?):object
Defined in: packages/pleco-xa/src/playback/ops.js:420
Close a detected gap by shifting the audio after it left. The normalized loop end is preserved as-is (legacy demo behavior).
Parameters
Section titled “Parameters”audioBuffer
Section titled “audioBuffer”any
loopData
Section titled “loopData”any
Returns
Section titled “Returns”object
null when no gap was detected.
buffer
Section titled “buffer”buffer:
any
gapSize
Section titled “gapSize”gapSize:
number
newLoopEnd
Section titled “newLoopEnd”newLoopEnd:
number