This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
The length property of the OfflineAudioContext interface returns an integer representing the size of the buffer in sample-frames.
An integer representing the size of the buffer in sample-frames.
| Specification |
|---|
| Web Audio API> # dom-offlineaudiocontext-length> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
length |
51 | 14 | 49 | 38 | 14.1 | 51 | 49 | 41 | 14.5 | 5.0 | 51 | 14.5 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/length