AAudioStreamBuilder_setPrivacySensitive

Function AAudioStreamBuilder_setPrivacySensitive 

Source
pub unsafe extern "C" fn AAudioStreamBuilder_setPrivacySensitive(
    builder: *mut AAudioStreamBuilder,
    privacy_sensitive: bool,
)
Expand description

Indicates whether this input stream must be marked as privacy sensitive or not.

When true, this input stream is privacy sensitive and any concurrent capture is not permitted.

This is off (false) by default except when the input preset is VoiceCommunication or Camcorder.

Always takes precedence over default from input preset when set explicitly.

Only relevant if the stream direction is Input.

Added in API level 30.

ยงArguments

  • builder - reference provided by AAudio_createStreamBuilder()
  • privacy_sensitive - true if capture from this stream must be marked as privacy sensitive, false otherwise.