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

This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!

Related References