blob: b329ba6e133c34f871bc651fb5ba205c4797802b [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://webaudio.github.io/web-audio-api/#AudioWorkletGlobalScope
[
Exposed=AudioWorklet,
Global=(Worklet,AudioWorklet),
OriginTrialEnabled=AudioWorklet
] interface AudioWorkletGlobalScope : WorkletGlobalScope {
[RaisesException, MeasureAs=AudioWorkletGlobalScopeRegisterProcessor] void registerProcessor(DOMString name, Function processorConstructor);
readonly attribute double currentTime;
readonly attribute float sampleRate;
};