pub unsafe extern "C" fn AAudioStream_waitForStateChange(
stream: *mut AAudioStream,
input_state: i32,
next_state: *mut i32,
timeout_nanoseconds: i64,
) -> i32Expand description
Wait until the current state no longer matches the input state.
Returns 0 for OK or a negative error.
This will update the current client state.
Available since API level 26.
ยงArguments
stream- A reference provided by AAudioStreamBuilder_openStream()input_state- The state we want to avoid.next_state- Pointer to a variable that will be set to the new state.timeout_nanoseconds- Maximum number of nanoseconds to wait for completion.