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

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