AudioParam.maxValue

The maxValue read-only property of the AudioParam interface represents the maximum possible value for the parameter's nominal (effective) range.

Syntax

var maxVal = audioParam.maxValue;

Value

A floating-pointĀ Number indicating the maximum value permitted for the parameter's nominal range.

The default value of maxValue is the maximum positive single-precision floating-point value (+340,282,346,638,528,859,811,704,183,484,516,925,440).

Example

const audioCtx = new AudioContext();
const gainNode = audioCtx.createGain();
console.log(gainNode.gain.maxValue); // 3.4028234663852886e38

Specifications

Specification Status Comment
Web Audio API
The definition of 'maxValue' in that specification.
Working Draft Ā 

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
maxValueChrome Full support 52Edge Full support ā‰¤18Firefox Full support 53IE No support NoOpera Full support 39Safari Full support 6WebView Android Full support 52Chrome Android Full support 52Firefox Android Full support 53Opera Android Full support 41Safari iOS Full support YesSamsung Internet Android Full support 6.0

Legend

Full support Ā 
Full support
No support Ā 
No support

See also