blob: 55b3223021b0e6921439e3fddc4f651a1098d041 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(fxbug.dev/36191): Move to fuchsia.media.audio
library fuchsia.media;
/// A protocol for monitoring the usage activity of the AudioRenderers and AudioCapturers.
[Discoverable]
protocol ActivityReporter {
/// Notifies the client whenever there is a change in the set of active AudioRenderUsages.
/// It returns immediately the first time that it is called.
WatchRenderActivity() -> (vector<AudioRenderUsage>:RENDER_USAGE_COUNT active_usages);
/// Notifies the client whenever there is a change in the set of active AudioCaptureUsages.
/// It returns immediately the first time that it is called.
WatchCaptureActivity() -> (vector<AudioCaptureUsage>:CAPTURE_USAGE_COUNT active_usages);
};