blob: 5f3a79398f99aedbe47b8d973c1e3e4b63c562ad [file] [log] [blame]
// 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
// NOTE: Keep this strucutre in sync with CopyConfig() defined in
// audio_decoder.cc.
dictionary AudioDecoderConfig {
required DOMString codec;
// Rate of samples per second. 44100, 48000, etc.
required [EnforceRange] unsigned long sampleRate;
// 1, 2, etc.
required [EnforceRange] unsigned long numberOfChannels;
// Optional byte data required to initialize audio decoders such as Vorbis
// codebooks.
AllowSharedBufferSource description;
};