Audio Buffer Size Explained
Every digital audio path moves sound in chunks called buffers. Smaller buffers mean lower latency and higher CPU pressure; larger buffers mean safer playback and more delay. This guide translates samples into milliseconds, explains dropouts (xruns), and gives practical starting points. After changing buffers, verify real-world delay with our online audio latency test where the API path allows.
What a Buffer Is
Your interface or driver gathers a block of samples, converts or transfers them, then grabs the next block. During each block the CPU must finish mixing plugins, game audio, or OS processing before the hardware needs more data. Miss the deadline and you hear a click, pop, stutter, or silence — often called an xrun, dropout, or glitch.
Buffer size is usually set in samples (64, 128, 256, 512, 1024…). Sample rate is in Hz (44100 or 48000 for most music/games). Together they define how much time that chunk represents.
The Millisecond Formula
buffer_ms = (buffer_samples / sample_rate) × 1000
Examples at 48 kHz:
- 64 samples ≈ 1.33 ms
- 128 samples ≈ 2.67 ms
- 256 samples ≈ 5.33 ms
- 512 samples ≈ 10.67 ms
- 1024 samples ≈ 21.33 ms
Examples at 44.1 kHz:
- 64 ≈ 1.45 ms
- 128 ≈ 2.90 ms
- 256 ≈ 5.80 ms
- 512 ≈ 11.61 ms
Important: listed buffer size is often only one side of the path. Round-trip monitoring (input + output + extra safety buffers) can be roughly double or more. Browser and WASAPI shared engines add their own padding on top of hardware buffers.
Latency vs CPU vs Stability
Think of a three-way tradeoff:
- Low buffer → low latency, less time for the CPU, higher chance of xruns when projects get heavy.
- High buffer → comfortable CPU headroom, higher delay, worse feel for virtual instruments and live monitoring.
- Sample rate bump (48 → 96 kHz) halves the ms for the same sample count but increases CPU cost — not a free lunch.
Glitches under load mean the buffer is too small for that session, not that low latency is impossible. Freeze/flatten tracks, raise buffer for mixing, lower it again for tracking.
Recommended Starting Points
- Tracking soft synths / recording guitars with monitoring: 64–128 samples on a capable interface + ASIO/Core Audio; raise to 256 if you hear crackles.
- Mixing large sessions: 512–1024 samples — latency matters less when you are not playing live into the box.
- Gaming on Windows shared audio: you may not get a direct “samples” slider; disable enhancements and avoid huge third-party FX. USB/RF headsets still benefit from clean power plans.
- Linux PipeWire: start near quantum 256–512; lower toward 64–128 only after realtime permissions and light DSP loads are confirmed.
- Rhythm games: prioritize a low-latency output path (wired/USB/RF) over chasing tiny ASIO numbers inside an unrelated DAW.
Interface Round-Trip Reality Check
Vendor control panels sometimes show estimated input, output, and round-trip ms. A Focusrite-class USB interface at 64 samples / 48 kHz can advertise roughly ~1.3 ms scale output figures in ideal conditions — but the number you feel in a browser test includes the OS and browser stack. Use vendor numbers for DAW tuning; use a tap test for “what my ears get in this app.”
How to Tune Without Losing Your Mind
- Set sample rate to what your project needs (48 kHz is a common sweet spot).
- Start at 256 samples. Confirm stable playback.
- Drop to 128, then 64, testing after each change with your heaviest typical load.
- At the first reliable xrun, step one size back up.
- For Windows DPC spikes (random glitches unrelated to buffer), investigate drivers with LatencyMon rather than only raising buffers forever.
- Document: sample rate, buffer, API (ASIO/WASAPI/PipeWire), and a measured ms reading from the online audio latency test when relevant.
Common Myths
- “More RAM lowers audio latency.” Not directly. Buffer and driver path dominate. (CAS latency of RAM is unrelated.)
- “1024 samples is always safer so always use it.” Safe for mixing; miserable for playing piano VSTs live.
- “Bluetooth latency is a buffer slider problem.” Codec and radio buffers dominate; ASIO will not save SBC.
Master the samples-to-ms conversion once, and every DAW or PipeWire quantum setting becomes readable instead of mystical. Choose the smallest buffer that stays clean for the task you are doing today — then measure to confirm the delay you actually hear.