The length property of the OfflineAudioContext interface returns an integer representing the size of the buffer in sample-frames.


var length = OfflineAudioContext.length;


An integer representing the size of the buffer in sample-frames.


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

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 51Edge Full support YesFirefox Full support YesIE No support NoOpera Full support 38Safari No support NoWebView Android Full support 51Chrome Android Full support 51Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 38Safari iOS No support NoSamsung Internet Android Full support 5.0


Full support  
Full support
No support  
No support

Document Tags and Contributors

Contributors to this page: fscholz, chrisdavidmills, PushpitaPikuDey, jpmedley
Last updated by: fscholz,