blob: 426e5bc9372bb0bfb70572ff3f052d3eb369ce14 [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.
enum EncodedAudioChunkType {
"key",
"delta",
};
[
Exposed=(Window,DedicatedWorker),
RuntimeEnabled=WebCodecs
] interface EncodedAudioChunk {
constructor(EncodedAudioChunkInit init);
readonly attribute EncodedAudioChunkType type;
readonly attribute long long timestamp; // microseconds
readonly attribute unsigned long byteLength;
readonly attribute unsigned long long? duration;
[RaisesException]
void copyTo(AllowSharedBufferSource destination);
};