[][src]Function aaudio_sys::AAudioStream_getXRunCount

pub unsafe extern "C" fn AAudioStream_getXRunCount(
    stream: *mut AAudioStream
) -> i32

An XRun is an Underrun or an Overrun. During playing, an underrun will occur if the stream is not written in time and the system runs out of valid data. During recording, an overrun will occur if the stream is not read in time and there is no place to put the incoming data so it is discarded.

An underrun or overrun can cause an audible "pop" or "glitch".

Note that some INPUT devices may not support this function. In that case a 0 will always be returned.

Available since API level 26.

Arguments

  • stream - reference provided by AAudioStreamBuilder_openStream()