| // Copyright 2020 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // https://github.com/WICG/web-codecs |
| |
| dictionary AudioDataInit { |
| required AudioSampleFormat format; |
| required float sampleRate; |
| required [EnforceRange] unsigned long numberOfFrames; |
| required [EnforceRange] unsigned long numberOfChannels; |
| required [EnforceRange] long long timestamp; // microseconds |
| required AllowSharedBufferSource data; |
| |
| sequence<ArrayBuffer> transfer = []; |
| }; |