// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[RuntimeEnabled=AudioContextPlayoutStats, Exposed=Window, SecureContext
] interface AudioPlayoutStats {
[CallWith=ScriptState] readonly attribute DOMHighResTimeStamp fallbackFramesDuration;
[CallWith=ScriptState] readonly attribute unsigned long fallbackFramesEvents;
[CallWith=ScriptState] readonly attribute DOMHighResTimeStamp totalFramesDuration;
[CallWith=ScriptState] readonly attribute DOMHighResTimeStamp averageLatency;
[CallWith=ScriptState] readonly attribute DOMHighResTimeStamp minimumLatency;
[CallWith=ScriptState] readonly attribute DOMHighResTimeStamp maximumLatency;
[CallWith=ScriptState] void resetLatency();
[CallWith=ScriptState] object toJSON();
};