Latency and buffer size
快速回答
Buffer size is how many samples your computer processes at once, and latency equals buffer size divided by sample rate. 256 samples at 44.1 kHz is about 5.8 ms per stage, roughly double for the round trip. Record at 64 to 128 samples for tight monitoring, then mix at 1024 or higher for stability.
What is buffer size in a DAW?
Buffer size is the number of audio samples your computer collects and processes in one chunk before passing them on. A bigger chunk gives the CPU more time to finish its work but makes you wait longer to hear the result.
Ableton's help center describes all audio in Live as processed in defined parcels of time called audio buffers, which smooth out events and help prevent dropouts. The bigger the buffer, the bigger the latency, and your driver type and interface affect latency too.[2] Every DAW works on the same principle, whether the setting is called buffer size, I/O buffer size or buffer length.
Latency is the delay between a sound entering the system and coming out of the speakers. You feel it when you hit a pad on your controller and the drum arrives a beat late, or when your own voice in the headphones sounds like a slapback echo.
- Small buffer (32 to 128 samples) Low latency, high CPU load. Good for playing instruments and recording through plugins.
- Medium buffer (256 to 512 samples) Noticeable but usable delay. A common middle ground for producing with a few software instruments.
- Large buffer (1024 to 2048 samples) Long delay, low CPU strain per block. Best for mixing heavy sessions where nobody is performing live.
How do you convert buffer size to milliseconds?
Divide the buffer size in samples by the sample rate in kHz. Ableton gives the example of 256 samples at 44.1 kHz producing 5.8 ms of expected latency for one stage of conversion.[1]
The table shows one buffer's worth of delay. Your real monitoring delay is at least twice this, because audio passes through an input buffer and an output buffer.
| Buffer size | At 44.1 kHz | At 48 kHz | At 96 kHz | Typical use |
|---|---|---|---|---|
| 32 samples | 0.73 ms | 0.67 ms | 0.33 ms | Tracking on a powerful machine, tiny sessions |
| 64 samples | 1.45 ms | 1.33 ms | 0.67 ms | Recording vocals or guitar through plugins |
| 128 samples | 2.90 ms | 2.67 ms | 1.33 ms | Recording and playing soft synths |
| 256 samples | 5.80 ms | 5.33 ms | 2.67 ms | Beatmaking with a few instruments |
| 512 samples | 11.61 ms | 10.67 ms | 5.33 ms | Arranging, light mixing |
| 1024 samples | 23.22 ms | 21.33 ms | 10.67 ms | Mixing larger sessions |
| 2048 samples | 46.44 ms | 42.67 ms | 21.33 ms | Mixing and mastering with heavy plugins |
Notice that doubling the sample rate halves the time per buffer. Apple's Logic Pro support notes that higher sample rates result in less input monitoring latency, with the trade-off of larger files and more load on the processor.[3] For most home studios, lowering the buffer is a cheaper fix than running the whole project at 96 kHz.
What is round-trip latency?
Round-trip latency is the total delay from the moment sound enters your interface input to the moment it leaves the output, including every buffer and converter in between. It is the number that decides whether monitoring through your DAW feels natural.
Apple defines roundtrip latency in Logic Pro as the total input monitoring latency from audio input to audio output and shows it under the I/O Buffer Size menu.[3] Ableton explains why its Overall Latency readout is higher than the simple formula: it includes both input and output latency (roughly the formula times two), extra layers of processing vary, and some interfaces report inaccurate values.[1]
- A/D conversion The interface turns the analog signal into data. Fixed by the hardware, usually small.
- Driver and input buffer Audio waits for a full buffer before the DAW can touch it. This is the part your buffer setting controls.
- DAW and plugin processing Plugins with lookahead, linear-phase filters or oversampling add their own delay, which the DAW compensates by delaying everything else.
- Output buffer and D/A conversion A second buffer and the output converter before sound reaches your headphones.
For a feel of scale: sound travels about 343 meters per second in air at 20 °C,[6] so 10 ms of latency is like standing about 3.4 m (11 ft) from your amp. Drummers and vocalists usually notice that; a pad player often does not. Treat 10 ms round trip as a practical upper target for tracking and adjust to what the performer tolerates.
What buffer size should you use for recording vs mixing?
Use the smallest buffer that plays without crackles while recording, then raise it for mixing. Apple's advice for Logic Pro is to set the buffer to the lowest setting when recording and increase it one step if you get system overload alerts.[3]
| Task | Starting buffer | Monitoring | Notes |
|---|---|---|---|
| Vocals or guitar through DAW effects | 64 to 128 samples | Software monitoring | Keep the session light while tracking |
| Vocals with interface direct monitoring | 256 to 512 samples | Direct monitor on, DAW input muted | Buffer barely matters for what you hear |
| Playing drums or keys on a MIDI controller | 64 to 256 samples | Software instrument | Finger drumming needs the low end of that range |
| Arranging and sound design | 256 to 512 samples | Playback only | Drop lower when you record a part |
| Mixing and mastering | 1024 to 2048 samples | Playback only | Maximum stability for heavy plugins |
- Open the audio settings
In Logic Pro it is Settings, Audio, Devices. In Ableton Live, Settings, Audio. In FL Studio, Options, Audio settings. - Lower the buffer before recording
Start at 128 samples. If playback stays clean, try 64. Watch the latency readout change. - Play the session for a full minute
Crackles, pops or CPU overload warnings mean the buffer is too small for this session. Go up one step. - Record the take
Keep heavy mastering plugins bypassed or frozen while you track, so they do not add delay. - Raise the buffer for mixing
Once everyone is done performing, switch to 1024 or 2048 samples so you can add plugins without dropouts.
ASIO or Core Audio: which audio driver should you use?
On Windows, use your interface manufacturer's ASIO driver. On a Mac, use Core Audio, the audio system built into macOS.
ASIO (Audio Stream Input/Output) was developed by Steinberg, and Steinberg says it is required by practically all professional audio programs under Windows, partly because of its low latency. The same page explains that ASIO drivers are not required on macOS because of Apple's Core Audio infrastructure.[4]
Ableton notes that low buffer sizes are hard to reach with the default MME/DirectX driver on Windows, recommends installing your interface's ASIO driver, and suggests ASIO4ALL only when no native ASIO driver exists. It also warns that Bluetooth and Wi-Fi audio add much higher latency.[2] If your driver refuses to show up or keeps dropping out, the Windows ASIO driver troubleshooting guide covers the fixes. Mac users combining two devices can follow Core Audio multi-interface setup.
Universal ASIO drivers
Generic drivers such as ASIO4ALL, FL Studio ASIO and Steinberg's built-in ASIO driver let a laptop's onboard sound chip talk to a DAW. Steinberg notes that its built-in driver uses a fixed buffer size that cannot be changed.[4] They are fine for sketching beats, but a dedicated interface with its own driver gives you real control over latency.
How do you record without hearing latency?
Use your interface's direct monitoring, or switch your DAW into its low-latency monitoring mode so heavy plugins are skipped while you record. Either way, the performer hears themselves on time.
Focusrite describes direct monitoring as sending the input straight to the headphone or line outputs with near-zero latency while the signal still goes to the DAW for recording. Mute the track you are recording to, or you will hear yourself twice.[5] The catch is that you hear the dry signal, not your DAW reverb or tuning plugin.
When you do need effects in the headphones, DAWs offer shortcuts. Logic Pro's Low Latency Mode bypasses latency-inducing plugins such as dynamics with look-ahead so the delay stays under your set limit.[3] Ableton's Reduced Latency When Monitoring skips the session-wide delay compensation on monitored tracks, and freezing latency-heavy tracks removes their delay entirely.[1] For a full vocal setup, see how to record vocals at home.
Why does a small buffer cause crackles and dropouts?
With a small buffer, the computer has to deliver each chunk of audio much sooner, so any moment where the CPU falls behind becomes an audible gap. Ableton describes those missing chunks as crackles or dropouts.[1]
If you get crackles at a buffer your machine should handle, the cause is often outside the DAW: power saving, a busy USB hub, background apps or an outdated driver. The companion guide on Windows 11 optimization for music production walks through those system settings. Inside the DAW, freeze or bounce CPU-heavy synths and check CPU optimization for large projects before you raise the buffer for good.
Buffer size does not change the sound of your mix or your exported file. It only decides how long you wait and how hard your CPU has to sprint, so there is no quality reason to keep it low while mixing.
Once your buffer settings are dialed in, load up free drum kits and VST plugins from Plugg Supply and start recording without the lag.
Learning path
相关答案中心
相关目录
目录中更多教程
Plugg Supply 信息流中更多教程,按目录热度排序。
LEARNING / VIDEO TUTORIALS
MixWithTheMasters Kevin Parker Producing 'Dracula' [TUTORiAL]
LEARNING / VIDEO TUTORIALS
MixWithTheMasters Olivia Rodrigo Mix with The Masters [TUTORiAL]
常见问题
- What is a good buffer size for recording vocals?
- A good buffer size for recording vocals through DAW effects is 64 or 128 samples, which keeps one-way delay under about 3 ms at 44.1 or 48 kHz. If your computer crackles at that setting, raise it one step, or use your interface's direct monitoring and set the buffer to 256 or 512 samples. With direct monitoring, the singer hears the input with near-zero latency regardless of the buffer.
- Does buffer size affect audio quality?
- Buffer size does not affect the audio quality of a recording or an export, as long as playback has no dropouts. Buffer size only changes how long the computer waits before processing audio and how much CPU headroom it has. If a small buffer causes crackles during recording, those glitches can end up in the take, so raise the buffer until playback is clean.
- Why does my DAW show more latency than the buffer size formula?
- A DAW shows more latency than the buffer formula because the formula covers only one stage. Ableton explains that Overall Latency includes both input and output latency, roughly the formula times two, plus variable processing layers and occasionally inaccurate values reported by the interface. Converter delay and plugin lookahead add further milliseconds.
- Is 10 ms of audio latency noticeable?
- 10 ms of audio latency is noticeable to many drummers and vocalists and borderline for most other players. Sound travels about 343 meters per second in air, so 10 ms equals standing roughly 3.4 meters from a speaker. For recording, aim for 10 ms round trip or less. For mixing, latency does not matter because nobody is performing.
- Does a higher sample rate reduce latency?
- A higher sample rate does reduce latency for the same buffer size, because each sample is shorter. Apple notes that higher sample rates result in less input monitoring latency but create larger audio files and more load on the processor. Lowering the buffer size at 44.1 or 48 kHz usually achieves the same result with less strain.
- Do I need an ASIO driver on a Mac?
- You do not need an ASIO driver on a Mac. Steinberg explains that ASIO drivers are not required under macOS because Apple's Core Audio infrastructure handles low-latency audio. Select your interface in the DAW's audio settings and adjust the buffer there. Some interfaces still ship a Mac control panel app for routing and direct monitoring.