--- title: OfflineAudoContext.length slug: Web/API/OfflineAudioContext/length translation_of: Web/API/OfflineAudioContext/length ---
{{SeeCompatTable}}{{ APIRef("Web Audio API") }}
{{domxref("OfflineAudioContext")}} 接口的 length
属性返回一个代表采样帧的缓冲区大小的整数。
var length = OfflineAudioContext.length;
一个代表采样帧的缓冲区大小的整数。
Specification | Status | Comment |
---|---|---|
{{SpecName('Web Audio API','#widl-OfflineAudioContext-length','length')}} | {{Spec2('Web Audio API')}} | Initial definition. |
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatChrome(51.0)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatChrome(51.0)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatChrome(51.0)}} |