/** * @typedef {Object} MicrophonePluginParams * @property {MediaStreamConstraints} constraints The constraints parameter is a * MediaStreamConstaints object with two members: video and audio, describing * the media types requested. Either or both must be specified. * @property {number} bufferSize=4096 The buffer size in units of sample-frames. * If specified, the bufferSize must be one of the following values: `256`, * `512`, `1024`, `2048`, `4096`, `8192`, `16384` * @property {number} numberOfInputChannels=1 Integer specifying the number of * channels for this node's input. Values of up to 32 are supported. * @property {?boolean} deferInit Set to true to manually call * `initPlugin('microphone')` */ /** * Visualise microphone input in a wavesurfer instance. * * @implements {PluginClass} * @extends {Observer} * @example * // es6 * import MicrophonePlugin from 'wavesurfer.microphone.js'; * * // commonjs * var MicrophonePlugin = require('wavesurfer.microphone.js'); * * // if you are using