Reference pause()

pause()

Pauses a file that is currently playing. If the file is not playing, then nothing will happen.

After pausing, .play() will resume from the paused position. If p5.SoundFile had been set to loop before it was paused, it will continue to loop after it is unpaused with .play().

Examples

Syntax

pause([startTime])

Parameters

startTime
Number:

(optional) schedule event to occur seconds from now

Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!

Related References