blob: 8d8f04998a98026634984596691554f66cfc27ba [file] [log] [blame]
// Copyright 2021 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://github.com/WICG/web-codecs
// NOTE: Keep this structure in sync with CopyConfig() defined in
// audio_encoder.cc.
dictionary AudioEncoderConfig {
// TODO(chcunningham): reference spec registry.
required DOMString codec;
// Rate of samples per second. 44100, 48000, etc.
required [EnforceRange] unsigned long sampleRate;
// 1, 2, etc.
required [EnforceRange] unsigned short numberOfChannels;
[EnforceRange] unsigned long long bitrate;
};