AAudioStreamBuilder_setSharingMode

Function AAudioStreamBuilder_setSharingMode 

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

Request a mode for sharing the device.

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

The requested sharing mode may not be available. The application can query for the actual mode after the stream is opened.

Available since API level 26.

ยงArguments

  • builder - reference provided by AAudio_createStreamBuilder()
  • sharing_mode - SHARING_MODE_SHARED or SHARING_MODE_EXCLUSIVE