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
This commit is contained in:
Jean-Michel Trivi 2012-10-10 12:23:17 -07:00
parent c7545189c8
commit 20c7f50cd5

View file

@ -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);
};