| // 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() -> (struct { |
| active_usages vector<AudioRenderUsage>:RENDER_USAGE_COUNT; |
| }); |
| |
| /// 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() -> (struct { |
| active_usages vector<AudioCaptureUsage>:CAPTURE_USAGE_COUNT; |
| }); |
| }; |