Свойство интерфейса AudioNode
возвращающее связанный AudioContext
, это объект, представляющий граф, в котором находится данный узел.(только для чтения)
Синтаксис
var aContext = anAudioNode.context;
Значение
Объект AudioContext
.
Example
var AudioContext = window.AudioContext || window.webkitAudioContext; var audioCtx = new AudioContext(); var oscillator = audioCtx.createOscillator(); var gainNode = audioCtx.createGain(); oscillator.connect(gainNode); gainNode.connect(audioCtx.destination); oscillator.context;
Спецификации
Спецификация | Статус | Комментарий |
---|---|---|
Web Audio API Определение 'context' в этой спецификации. |
Рабочий черновик |
Совместимость с браузерами
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | 10.0webkit | (Да) | 25.0 (25.0) | Нет | 15.0webkit 22 (unprefixed) |
(Да) |
Feature | Android | Edge | Firefox Mobile (Gecko) | Firefox OS (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Basic support | ? | (Да) | 26.0 | 1.2 | ? | ? | ? |