[−][src]Function aaudio_sys::AAudioStreamBuilder_setSharingMode
pub unsafe extern "C" fn AAudioStreamBuilder_setSharingMode(
builder: *mut AAudioStreamBuilder,
sharing_mode: i32
)
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
orSHARING_MODE_EXCLUSIVE