Interface AudioSourceOptions

Options for processing the audio buffer. You need to set the options for processing the audio buffer when calling [startProcessAudioBuffer]IBufferSourceAudioTrack.startProcessAudioBuffer.

interface AudioSourceOptions {
    cycle?: number;
    loop?: boolean;
    startPlayTime?: number;
}

Properties

cycle?: number

How many times the audio loops.

loop?: boolean

Whether to loop the audio infinitely.

startPlayTime?: number

The playback position (seconds).