diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2012-10-10 12:23:17 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2012-10-10 12:23:17 -0700 |
commit | 20c7f50cd5d60ee7d76f2f502866187992e7675b (patch) | |
tree | 4cce1ee701e5656d94ba62d36862ab3c591fc350 | |
parent | c7545189c8b260bbaf09653407450418a3d1860b (diff) | |
download | hardware_libhardware-20c7f50cd5d60ee7d76f2f502866187992e7675b.zip hardware_libhardware-20c7f50cd5d60ee7d76f2f502866187992e7675b.tar.gz hardware_libhardware-20c7f50cd5d60ee7d76f2f502866187992e7675b.tar.bz2 |
Support querying active record sources
Add support for querying whether there is currently a recording
underway from the specified audio source.
Bug 7314859
Change-Id: I270f27eff4dcf1cc179089859a4c690140825ad1
-rw-r--r-- | include/hardware/audio_policy.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hardware/audio_policy.h b/include/hardware/audio_policy.h index 6dd5fd7..9e145f8 100644 --- a/include/hardware/audio_policy.h +++ b/include/hardware/audio_policy.h @@ -232,6 +232,9 @@ struct audio_policy { audio_stream_type_t stream, uint32_t in_past_ms); + bool (*is_source_active)(const struct audio_policy *pol, + audio_source_t source); + /* dump state */ int (*dump)(const struct audio_policy *pol, int fd); }; |