AAudioStreamBuilder_setUsage

Function AAudioStreamBuilder_setUsage 

Source
pub unsafe extern "C" fn AAudioStreamBuilder_setUsage(
    builder: *mut AAudioStreamBuilder,
    usage: i32,
)
Expand description

Set the intended use case for the stream.

The AAudio system will use this information to optimize the behavior of the stream. This could, for example, affect how volume and focus is handled for the stream.

The default, if you do not call this function, is Media.

Available since API level 28.

  • builder - reference provided by AAudio_createStreamBuilder()
  • usage - the desired usage, eg. Game