How to Set Audio Buffer Sizes per Core Without Crackle

Audio buffer size setup guide: learn how per-core buffer settings affect latency and crackle, and how to find a stable value by stepwise testing.
Audio crackle in an emulator usually has a simple cause: the buffer is too small for the time the host needs to fill it. The setting appears under different names, from a latency value in milliseconds to a sample count in a standalone core, but the trade is always the same. A smaller buffer shortens the delay between a button press and the sound, which makes a game feel tight. A larger buffer absorbs hiccups from a busy CPU or a slow display, at the cost of a small but noticeable lag. Getting this right matters more for rhythm games and fighting games than for a slow puzzle title. The reliable method is to change one setting at a time, measure with a real game and keep a record of what worked. This guide assumes a legal personal backup of media you own and no downloaded ROMs or BIOS files.
Where the setting lives
In RetroArch the main control is Settings, then Audio, then Latency, expressed in milliseconds. Some standalone cores expose a buffer size in samples instead, and a few audio backends add their own buffering on top. If you use a Windows PC, the operating system mixer adds a small delay of its own, and a Bluetooth headset adds a great deal more. Before touching any emulator setting, make a note of the output device and the sample rate. A wired headset or speakers on a direct connection gives you a baseline you can trust, while a wireless device can make every change look like a failure.
Why the sample rate matters
Most emulators run their audio at 48000 Hz, and older consoles generate rates that do not divide evenly into it. The resampler bridges the gap. A mismatch between the operating system mixer and the emulator can add a second resampling stage, which costs CPU time and can introduce a faint whine. Keep every stage at the same rate where possible. The table below shows a sensible starting point for a modern desktop setup.
| Stage | Setting | Why |
|---|---|---|
| OS mixer | 48000 Hz, 16 or 24 bit | Avoids a second resample |
| Emulator output | 48000 Hz | Matches the mixer and most cores |
| Emulator buffer | Moderate starting value | Balances delay and stability |
| Dynamic rate control | Off while testing | Prevents hidden speed changes |
Dynamic rate control is useful in daily play because it nudges the audio clock to match video. While diagnosing crackle, turn it off so the numbers mean something, then decide whether to re-enable it once the buffer is stable.
The stepwise test
- Copy your config folder to a dated backup before changing anything.
- Set a moderate buffer and disable dynamic rate control.
- Load a game with dense audio, such as a shoot-em-up with continuous music and many effects.
- Listen for at least ten minutes while the game is active, not just at the title screen.
- If crackle appears, raise the buffer by one step and repeat. If there is no crackle, lower it by one step and repeat.
- Stop at the smallest value that stays clean for a full ten-minute run, then add one step of margin.
Ten minutes sounds excessive, but underruns often appear only when the CPU is warm or a background task starts. A five-second test will pass almost any setting.
Backends and devices that change the answer
The audio backend you choose has a large effect on what a buffer value means. On Windows, WASAPI in exclusive mode tends to give the lowest and most predictable latency because it bypasses the shared mixer. DirectSound and older shared paths add buffering you cannot see from the emulator menu, which makes a small setting appear to work when it is really the backend doing the waiting. On Linux, PulseAudio and PipeWire introduce their own buffers, while ALSA can talk more directly to the device if your user has permission. A Bluetooth headset is a special case: the wireless link itself adds tens of milliseconds, so no buffer adjustment will make a fighting game feel immediate. If latency is the goal, use a wired output and accept that the wireless device is for casual play. Checking which backend is active is the first thing to do when a setting that worked on one machine behaves differently on another.
A quick way to measure without software
You do not need a measurement tool to compare two buffer values. Record your screen with a phone camera pointed at both the monitor and a speaker. A short recorded video at high frame rate shows the gap between a visible flash and the sound waveform if you play it back carefully. This is rough, but it is enough to tell whether a change made things better or worse. For drift, play a game with a fixed musical loop for fifteen minutes and listen against a separate metronome. If the two slowly separate, the audio clock is being stretched somewhere and a larger buffer will not solve it. Look instead at video sync, refresh rate and dynamic rate control. Keeping notes across these tests turns a frustrating guessing game into a short list of values that suit your machine.
Reading the log and checking the result
Enable logging if the emulator offers it and look for lines mentioning underrun, buffer underflow or resampler. A single message at startup is harmless; repeated messages during play confirm that the buffer is too small. Also check the video side. If the display runs at 75 Hz while the core targets 59.94 Hz, the audio may be stretched to match, and no buffer size will make that feel right. Fix the refresh mismatch first. The final check is practical: tap a button that produces an immediate sound and watch whether the visual and audio cue line up. Over a long run, drift should not accumulate. If it does, treat that as a rate problem rather than a buffer problem.
Per-core overrides are the last step
One buffer value rarely suits every system. A 2D console core is light, while a disc-based core with streaming audio needs more headroom. Save a core override once you find a good value, and keep a separate setting for any game that still crackles. Resist the urge to change several settings in the same session, because you will not know which one helped. Small, recorded changes are slower at first and much faster by the third core.
Related reading
If you want to keep digging into this corner of the library, these two posts on Roms Get go a little further:
