AAudioStreamBuilder_setContentType

Function AAudioStreamBuilder_setContentType 

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

Set the type of audio data that the stream will carry.

The AAudio system will use this information to optimize the behavior of the stream. This could, for example, affect whether a stream is paused when a notification occurs.

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

Available since API level 28.

ยงArguments

  • builder - reference provided by AAudio_createStreamBuilder()
  • content_type - the type of audio data, eg. Speech