AAudioStreamBuilder_setPerformanceMode

Function AAudioStreamBuilder_setPerformanceMode 

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

Set the requested performance mode.

Supported modes are None, PowerSaving and LowLatency.

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

You may not get the mode you requested. You can call AAudioStream_getPerformanceMode() to find out the final mode for the stream.

Available since API level 26.

ยงArguments

  • builder - reference provided by AAudio_createStreamBuilder()
  • mode - the desired performance mode, eg. LowLatency