CITATION — REFERENCE ENTRY

Contributors to audio latency — Android Open Source Project documentation: Core topics

Revision e544bcfe-a87d-4d58-8d67-a3d97cfa25bb · 11/27/2026, 1:34:32 AM UTC
Key
aosp-latency-contributors
Authors
Android Open Source Project
Issued
2026-10-9
Type
webpage
Container
Android Open Source Project documentation: Core topics
Raw CSL JSON
{
  "URL": "https://source.android.com/docs/core/audio/latency/contrib",
  "note": "Date is the page's last update.",
  "type": "webpage",
  "title": "Contributors to audio latency",
  "author": [
    {
      "literal": "Android Open Source Project"
    }
  ],
  "issued": {
    "date-parts": [
      [
        2026,
        10,
        9
      ]
    ]
  },
  "accessed": {
    "date-parts": [
      [
        2026,
        11,
        26
      ]
    ]
  },
  "container-title": "Android Open Source Project documentation: Core topics"
}

Claims

  1. The main surface contributors to output latency are the application, the number and size of buffers in the pipeline and any further processing after the application processor, such as a DSP. But buffer count and size are more effect than cause: designers enlarge buffers to stop the clicks and pops of underruns and overruns, which adds latency; it is better to fix the causes, which permits smaller or fewer buffers.
    "the major surface-level contributors to audio latency are the following: Application Total number of buffers in pipeline ... Size of each buffer, in frames Additional latency after the app processor, such as from a DSP ... The reason is that buffer count and buffer size are more of an effect than a cause . ... an audio underrun or overrun is heard as a "click" or "pop." To compensate, the system designer then increases buffer sizes ... or buffer counts. This has the desired result of eliminating the underruns or overruns, ... but it also has the undesired side effect of increasing latency. ... A better approach is to understand the causes of the underruns and overruns, and then correct those. ... This eliminates the audible artifacts and may permit even smaller or fewer buffers and thus reduce latency."
    Locator: Contributors to audio latency · Quote language: en
  2. Common causes of underruns and overruns include the Linux Completely Fair Scheduler, high-priority threads with SCHED_FIFO scheduling, priority inversion, long scheduling latency (anything over two milliseconds causes problems for audio), long-running interrupt handlers, long interrupt disable times, power management and security kernels.
    "the most common causes of underruns and overruns include: Linux CFS (Completely Fair Scheduler) high-priority threads with ... SCHED_FIFO scheduling priority inversion long scheduling latency long-running interrupt handlers long interrupt disable ... time power management security kernels ... The shorter the latency the better, and anything over two milliseconds causes problems for audio."
    Locator: Contributors to audio latency · Quote language: en
Available in