[][src]Function aaudio_sys::AAudioStreamBuilder_setContentType

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

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