[][src]Function aaudio_sys::AAudioStream_getFramesPerBurst

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

Query the number of frames that the application should read or write at one time for optimal performance. It is OK if an application writes a different number of frames. But the buffer size may need to be larger in order to avoid underruns or overruns.

Note that this may or may not match the actual device burst size. For some endpoints, the burst size can vary dynamically. But these tend to be devices with high latency.

Available since API level 26.

Arguments

  • stream - reference provided by AAudioStreamBuilder_openStream()