[−][src]Function aaudio_sys::AAudioStream_getState
pub unsafe extern "C" fn AAudioStream_getState(stream: *mut AAudioStream) -> i32
Query the current state of the client, eg. Pausing
.
This function will immediately return the state without updating the state.
If you want to update the client state based on the server state then
call AAudioStream_waitForStateChange() with currentState
set to Unknown
and a zero timeout.
Available since API level 26.
Arguments
stream
- reference provided by AAudioStreamBuilder_openStream()