Reference setSource()

setSource()

Set the input source. Accepts a number representing a position in the array returned by getSources(). This is only available in browsers that support navigator.mediaDevices.enumerateDevices()

Examples

Syntax

setSource(num)

Parameters

num
Number:

position of input source in the array

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